projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] hrtimers: remove nsec_t typedef
[powerpc.git]
/
fs
/
read_write.c
diff --git
a/fs/read_write.c
b/fs/read_write.c
index
3f7a1a6
..
34b1bf2
100644
(file)
--- a/
fs/read_write.c
+++ b/
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;