tipc __user annotations
Subsystems (2)
PATCH 1/1 tipc __user annotations
Signed-off-by Al Viro <[email protected]>
--- net/tipc/socket.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
net/tipc/socket.c +3 -3
@@ -941,7 +941,7 @@ static int recv_stream(struct kiocb *iocint sz_to_copy;int sz_copied =0 ;int needed; -char *crs = m->msg_iov->iov_base; +char __user *crs = m->msg_iov->iov_base;unsigned char *buf_crs;u32 err;int res;
@@ -1496,7 +1496,7 @@ static int setsockopt(struct socket *socreturn -ENOPROTOOPT ;if (ol <sizeof (value))return -EINVAL ; -if ((res =get_user (value, (u32 *)ov))) +if ((res =get_user (value, (u32 __user *)ov)))return res;if (down_interruptible (&tsock->sem))
@@ -1541,7 +1541,7 @@ static int setsockopt(struct socket *soc*/ static int getsockopt (struct socket *sock, -int lvl,int opt,char __user *ov,int *ol) +int lvl,int opt,char __user *ov,int __user *ol) {struct tipc_sock *tsock =tipc_sk (sock->sk);int len;
Signature · 1 line
1.4.2.GIT
David Miller
maintainerFrom: Al Viro <[email protected]>
Date: Tue, 10 Oct 2006 22:45:57 +0100
Quoted 2 lines
Signed-off-by Al Viro <[email protected]>
Signed-off-by David S. Miller <[email protected]>