diff options
Diffstat (limited to 'fs/pipe.c')
-rw-r--r-- | fs/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1170,7 +1170,7 @@ long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg) | |||
1170 | switch (cmd) { | 1170 | switch (cmd) { |
1171 | case F_SETPIPE_SZ: | 1171 | case F_SETPIPE_SZ: |
1172 | if (!capable(CAP_SYS_ADMIN) && arg > pipe_max_pages) | 1172 | if (!capable(CAP_SYS_ADMIN) && arg > pipe_max_pages) |
1173 | return -EINVAL; | 1173 | return -EPERM; |
1174 | /* | 1174 | /* |
1175 | * The pipe needs to be at least 2 pages large to | 1175 | * The pipe needs to be at least 2 pages large to |
1176 | * guarantee POSIX behaviour. | 1176 | * guarantee POSIX behaviour. |