diff options
Diffstat (limited to 'fs/ioprio.c')
-rw-r--r-- | fs/ioprio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ioprio.c b/fs/ioprio.c index d6ff77e8e7e..e4e01bc7f33 100644 --- a/fs/ioprio.c +++ b/fs/ioprio.c | |||
@@ -78,6 +78,10 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio) | |||
78 | if (!capable(CAP_SYS_ADMIN)) | 78 | if (!capable(CAP_SYS_ADMIN)) |
79 | return -EPERM; | 79 | return -EPERM; |
80 | break; | 80 | break; |
81 | case IOPRIO_CLASS_NONE: | ||
82 | if (data) | ||
83 | return -EINVAL; | ||
84 | break; | ||
81 | default: | 85 | default: |
82 | return -EINVAL; | 86 | return -EINVAL; |
83 | } | 87 | } |