From: Vincenzo Frascino Date: Wed, 7 Sep 2022 12:12:30 +0000 (+0100) Subject: security/keys: Remove inconsistent __user annotation X-Git-Tag: v6.1-rc1~80^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72e9be6be9c08d882f94f80c7cf1b27f0896213d;p=thirdparty%2Flinux.git 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 Cc: Jarkko Sakkinen Cc: Paul Moore Cc: James Morris Signed-off-by: Vincenzo Frascino Reviewed-by: Paul Moore Acked-by: Jarkko Sakkinen Signed-off-by: Jarkko Sakkinen --- diff --git a/security/keys/keyring.c b/security/keys/keyring.c index 5e6a907607530..4448758f643a5 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c @@ -79,7 +79,7 @@ static void keyring_revoke(struct key *keyring); static void keyring_destroy(struct key *keyring); static void keyring_describe(const struct key *keyring, struct seq_file *m); static long keyring_read(const struct key *keyring, - char __user *buffer, size_t buflen); + char *buffer, size_t buflen); struct key_type key_type_keyring = { .name = "keyring",