Commit e110ab94 authored by Al Viro's avatar Al Viro

[PATCH] fix __user annotations in fs/select.c

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3023b438
...@@ -510,9 +510,9 @@ asmlinkage long sys_pselect6(int n, fd_set __user *inp, fd_set __user *outp, ...@@ -510,9 +510,9 @@ asmlinkage long sys_pselect6(int n, fd_set __user *inp, fd_set __user *outp,
if (sig) { if (sig) {
if (!access_ok(VERIFY_READ, sig, sizeof(void *)+sizeof(size_t)) if (!access_ok(VERIFY_READ, sig, sizeof(void *)+sizeof(size_t))
|| __get_user(up, (sigset_t * __user *)sig) || __get_user(up, (sigset_t __user * __user *)sig)
|| __get_user(sigsetsize, || __get_user(sigsetsize,
(size_t * __user)(sig+sizeof(void *)))) (size_t __user *)(sig+sizeof(void *))))
return -EFAULT; return -EFAULT;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment