Skip to content

Commit 72e9be6

Browse files
fvincenzojarkkojs
authored andcommitted
security/keys: Remove inconsistent __user annotation
The declaration of keyring_read does not match the definition (security/keys/keyring.c). In this case the definition is correct because it matches what defined in "struct key_type::read" (linux/key-type.h). Fix the declaration removing the inconsistent __user annotation. Cc: David Howells <[email protected]> Cc: Jarkko Sakkinen <[email protected]> Cc: Paul Moore <[email protected]> Cc: James Morris <[email protected]> Signed-off-by: Vincenzo Frascino <[email protected]> Reviewed-by: Paul Moore <[email protected]> Acked-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent e174b12 commit 72e9be6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/keys/keyring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void keyring_revoke(struct key *keyring);
7979
static void keyring_destroy(struct key *keyring);
8080
static void keyring_describe(const struct key *keyring, struct seq_file *m);
8181
static long keyring_read(const struct key *keyring,
82-
char __user *buffer, size_t buflen);
82+
char *buffer, size_t buflen);
8383

8484
struct key_type key_type_keyring = {
8585
.name = "keyring",

0 commit comments

Comments
 (0)