summaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-09 15:19:44 +0100
committerDavid S. Miller <davem@davemloft.net>2014-09-09 20:39:40 -0700
commited3bfdfdced76aa7edb0b05c0d739ee3a2a6e619 (patch)
tree25790893cb0fae21f2302c5ff5ac9c2ee57ca721 /net/rxrpc
parent37b7021d9d713964482faeb9e0935f458a1a4016 (diff)
downloadblackbird-op-linux-ed3bfdfdced76aa7edb0b05c0d739ee3a2a6e619.tar.gz
blackbird-op-linux-ed3bfdfdced76aa7edb0b05c0d739ee3a2a6e619.zip
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 <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/ar-key.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud