--- read_write.c.org Fri Mar 15 16:10:05 2002 +++ read_write.c Fri Mar 15 16:10:13 2002 @@ -241,10 +241,9 @@ * First get the "struct iovec" from user memory and * verify all the pointers */ - ret = 0; + ret = -EINVAL; if (!count) goto out_nofree; - ret = -EINVAL; if (count > UIO_MAXIOV) goto out_nofree; if (!file->f_op)