Skip to contentSkip to conversation

hidp __user annotations

PATCH New Al Viro 1 participant 1 message Feb 9, 2007 Bluetooth

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 hidp __user annotations

---
 net/bluetooth/hidp/hidp.h |    2 +-
 net/bluetooth/hidp/sock.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/hidp/hidp.h +1 -1
index c2775f5..c8dfacd 100644
@@ -86,7 +86,7 @@ struct hidp_connadd_req {
 	int   intr_sock;	// Connteted interrupt socket
 	__u16 parser;
 	__u16 rd_size;
-	__u8 *rd_data;
+	__u8 __user *rd_data;
 	__u8  country;
 	__u8  subclass;
 	__u16 vendor;
net/bluetooth/hidp/sock.c +1 -1
index 407fba4..93cf9e5 100644
@@ -189,7 +189,7 @@ static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigne
 
 		uca = compat_alloc_user_space(sizeof(*uca));
 
-		if (copy_from_user(&ca, (void *) arg, sizeof(ca)))
+		if (copy_from_user(&ca, (void __user *) arg, sizeof(ca)))
 			return -EFAULT;
 
 		if (put_user(ca.ctrl_sock, &uca->ctrl_sock) ||
Signature · 1 line
1.5.0-rc2.GIT