Skip to contentSkip to conversation

fix __user annotations in fs/select.c

PATCH In review Al Viro 1 participant 1 message Feb 8, 2006 VFS

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 11/29 fix __user annotations in fs/select.c

Date: 1138789569 -0500

pselect patch had introduced rather weird annotations; fix them

---

 fs/select.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

e110ab94ebc714de57f75f0c7c576dde8cf80944

fs/select.c +2 -2
index c0f02d3..bc60a3e 100644
@@ -510,9 +510,9 @@ asmlinkage long sys_pselect6(int n, fd_s
 
 	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;
 	}
 
Signature · 1 line
0.99.9.GIT