]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/compat.c
[ARM] 3500/1: fix PXA27x DMA allocation priority
[linux-2.6-omap-h63xx.git] / fs / compat.c
index 3f3e8f4d43d69230b7c4e36eb9a629e27221a22e..970888aad84383d6d708d347593e461165b4d2a1 100644 (file)
@@ -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++) {