|
@@ -169,6 +169,8 @@ static int filldir(struct dir_context *ctx, const char *name, int namlen,
|
|
|
}
|
|
|
dirent = buf->previous;
|
|
|
if (dirent) {
|
|
|
+ if (signal_pending(current))
|
|
|
+ return -EINTR;
|
|
|
if (__put_user(offset, &dirent->d_off))
|
|
|
goto efault;
|
|
|
}
|
|
@@ -248,6 +250,8 @@ static int filldir64(struct dir_context *ctx, const char *name, int namlen,
|
|
|
return -EINVAL;
|
|
|
dirent = buf->previous;
|
|
|
if (dirent) {
|
|
|
+ if (signal_pending(current))
|
|
|
+ return -EINTR;
|
|
|
if (__put_user(offset, &dirent->d_off))
|
|
|
goto efault;
|
|
|
}
|