diff --git a/[refs] b/[refs] index 8f17fdd587e6..99a5aa479239 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a0548871ed267ae12eb1c860c5aaebd9e466b34e +refs/heads/master: 98232d504db0a1f91ecaa93686ed3bf61963103b diff --git a/trunk/fs/compat.c b/trunk/fs/compat.c index 3f3e8f4d43d6..970888aad843 100644 --- a/trunk/fs/compat.c +++ b/trunk/fs/compat.c @@ -1323,7 +1323,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32, { unsigned i; struct iovec *iov; - if (nr_segs >= UIO_MAXIOV) + if (nr_segs > UIO_MAXIOV) return -EINVAL; iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec)); for (i = 0; i < nr_segs; i++) {