diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-04 13:25:40 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-04 13:25:40 -0400 |
| commit | cbdf811c77cf2906a099b8da92e9f6f335b68a73 (patch) | |
| tree | c4f96893936eddb31c60476ea4e776499d9046df /fs/compat.c | |
| parent | 936ef1d48ac9a9fc90746bacd93624969711775a (diff) | |
| parent | 98232d504db0a1f91ecaa93686ed3bf61963103b (diff) | |
Merge branch 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block
* 'splice' of git://brick.kernel.dk/data/git/linux-2.6-block:
[PATCH] compat_sys_vmsplice: one-off in UIO_MAXIOV check
[PATCH] splice: redo page lookup if add_to_page_cache() returns -EEXIST
[PATCH] splice: rename remaining info variables to pipe
[PATCH] splice: LRU fixups
[PATCH] splice: fix unlocking of page on error ->prepare_write()
Diffstat (limited to 'fs/compat.c')
| -rw-r--r-- | fs/compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/compat.c b/fs/compat.c index 3f3e8f4d43d6..970888aad843 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
| @@ -1323,7 +1323,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32, | |||
| 1323 | { | 1323 | { |
| 1324 | unsigned i; | 1324 | unsigned i; |
| 1325 | struct iovec *iov; | 1325 | struct iovec *iov; |
| 1326 | if (nr_segs >= UIO_MAXIOV) | 1326 | if (nr_segs > UIO_MAXIOV) |
| 1327 | return -EINVAL; | 1327 | return -EINVAL; |
| 1328 | iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec)); | 1328 | iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec)); |
| 1329 | for (i = 0; i < nr_segs; i++) { | 1329 | for (i = 0; i < nr_segs; i++) { |
