projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37b7021
)
RxRPC: Fix missing __user annotation
author
David Howells
<dhowells@redhat.com>
Tue, 9 Sep 2014 14:19:44 +0000
(15:19 +0100)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Sep 2014 03:39:40 +0000
(20:39 -0700)
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>
net/rxrpc/ar-key.c
patch
|
blob
|
history
diff --git
a/net/rxrpc/ar-key.c
b/net/rxrpc/ar-key.c
index b45d080e64a736294167b192a660eb79718c808c..1b24191167f1f5de119271f05a3f7f6dcfb5e376 100644
(file)
--- 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)