From: David Howells Date: Tue, 9 Sep 2014 14:19:44 +0000 (+0100) Subject: RxRPC: Fix missing __user annotation X-Git-Tag: Ubuntu-5.10.0-12.13~16208^2~43 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ed3bfdfdced76aa7edb0b05c0d739ee3a2a6e619;p=mirror_ubuntu-hirsute-kernel.git RxRPC: Fix missing __user annotation Fix a missing __user annotation in a cast of a user space pointer (found by checker). Signed-off-by: David Howells Signed-off-by: David S. Miller --- diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c index b45d080e64a7..1b24191167f1 100644 --- a/net/rxrpc/ar-key.c +++ b/net/rxrpc/ar-key.c @@ -1143,7 +1143,7 @@ static long rxrpc_read(const struct key *key, if (copy_to_user(xdr, (s), _l) != 0) \ goto fault; \ if (_l & 3 && \ - copy_to_user((u8 *)xdr + _l, &zero, 4 - (_l & 3)) != 0) \ + copy_to_user((u8 __user *)xdr + _l, &zero, 4 - (_l & 3)) != 0) \ goto fault; \ xdr += (_l + 3) >> 2; \ } while(0)