projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] compat_sys_vmsplice: one-off in UIO_MAXIOV check
[powerpc.git]
/
fs
/
compat.c
diff --git
a/fs/compat.c
b/fs/compat.c
index
3f3e8f4
..
970888a
100644
(file)
--- a/
fs/compat.c
+++ b/
fs/compat.c
@@
-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++) {