Skip to content

Commit

Permalink
[PATCH] tipc __user annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 10, 2006
1 parent 47b1653 commit 28c4dad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ static int recv_stream(struct kiocb *iocb, struct socket *sock,
int 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;
Expand Down Expand Up @@ -1496,7 +1496,7 @@ static int setsockopt(struct socket *sock,
return -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))
Expand Down Expand Up @@ -1541,7 +1541,7 @@ static int setsockopt(struct socket *sock,
*/

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;
Expand Down

0 comments on commit 28c4dad

Please sign in to comment.