Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199911
b: refs/heads/master
c: 6a6ca57
h: refs/heads/master
i:
  199909: 4ddc5e3
  199907: c2100a7
  199903: 40f958f
v: v3
  • Loading branch information
Jens Axboe committed Jun 3, 2010
1 parent 6c2ea6d commit 69df827
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4ca761577535b2b4d153689ee97342797dfff05
refs/heads/master: 6a6ca57de92fcae34603551ac944aa74758c30d4
8 changes: 1 addition & 7 deletions trunk/fs/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,13 +1181,7 @@ long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg)
if (!capable(CAP_SYS_ADMIN) && nr_pages > pipe_max_pages) {
ret = -EPERM;
goto out;
}

/*
* The pipe needs to be at least 2 pages large to
* guarantee POSIX behaviour.
*/
if (arg < 2) {
} else if (nr_pages < 1) {
ret = -EINVAL;
goto out;
}
Expand Down

0 comments on commit 69df827

Please sign in to comment.