From: Al Viro Date: Wed, 1 Feb 2006 10:26:09 +0000 (-0500) Subject: [PATCH] fix __user annotations in fs/select.c X-Git-Tag: v2.6.16-rc3~86 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e110ab94ebc714de57f75f0c7c576dde8cf80944;p=linux-2.6-omap-h63xx.git [PATCH] fix __user annotations in fs/select.c Signed-off-by: Al Viro --- diff --git a/fs/select.c b/fs/select.c index c0f02d36c60..bc60a3e14ef 100644 --- a/fs/select.c +++ b/fs/select.c @@ -510,9 +510,9 @@ asmlinkage long sys_pselect6(int n, fd_set __user *inp, fd_set __user *outp, if (sig) { 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, - (size_t * __user)(sig+sizeof(void *)))) + (size_t __user *)(sig+sizeof(void *)))) return -EFAULT; }