Skip to content
Commit 90bd49ab authored by James Morris's avatar James Morris
Browse files

keys: fix sparse warning by adding __user annotation to cast



Fix the following sparse warning:

      CC      security/keys/key.o
    security/keys/keyctl.c:1297:10: warning: incorrect type in argument 2 (different address spaces)
    security/keys/keyctl.c:1297:10:    expected char [noderef] <asn:1>*buffer
    security/keys/keyctl.c:1297:10:    got char *<noident>

which appears to be caused by lack of __user annotation to the cast of
a syscall argument.

Signed-off-by: default avatarJames Morris <jmorris@namei.org>
Acked-by: default avatarDavid Howells <dhowells@redhat.com>
parent 6a94cb73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment