From 9ea933da1a66622bad2c459e4c1e125122a6f105 Mon Sep 17 00:00:00 2001 From: Carsten Otte Date: Sat, 25 Mar 2006 03:08:23 -0800 Subject: [PATCH] --- yaml --- r: 23612 b: refs/heads/master c: 6cc6b1226b71132a1d6e95449d78e051f1f3b506 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/read_write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;