[PATCH] more fs/compat.c __user annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -1316,7 +1316,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32,
|
|||||||
unsigned int nr_segs, unsigned int flags)
|
unsigned int nr_segs, unsigned int flags)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
struct iovec *iov;
|
struct iovec __user *iov;
|
||||||
if (nr_segs > UIO_MAXIOV)
|
if (nr_segs > UIO_MAXIOV)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec));
|
iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec));
|
||||||
|
Reference in New Issue
Block a user