diff --git a/[refs] b/[refs] index 18a3343328a5..4c44db8245da 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 55148548124e3e52e8921f1cb0e325111ef9cbb1 +refs/heads/master: 6cc6b1226b71132a1d6e95449d78e051f1f3b506 diff --git a/trunk/fs/read_write.c b/trunk/fs/read_write.c index 3f7a1a62165f..34b1bf259efd 100644 --- a/trunk/fs/read_write.c +++ b/trunk/fs/read_write.c @@ -470,7 +470,7 @@ static ssize_t do_readv_writev(int type, struct file *file, * verify all the pointers */ ret = -EINVAL; - if ((nr_segs > UIO_MAXIOV) || (nr_segs <= 0)) + if (nr_segs > UIO_MAXIOV) goto out; if (!file->f_op) goto out;