]> git.baikalelectronics.ru Git - kernel.git/commit
security/keys: Remove inconsistent __user annotation
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Wed, 7 Sep 2022 12:12:30 +0000 (13:12 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 4 Oct 2022 21:25:56 +0000 (00:25 +0300)
commit104f412a6a0a97657662d1f81b999f48ac2dff7b
treeb819a75ef35b1237c03d306f75557bcb0088a072
parentd4e909355b0ec51ebdd4db372302ddc437217a9d
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 <dhowells@redhat.com>
Cc: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Paul Moore <paul@paul-moore.com>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Paul Moore <paul@paul-moore.com>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
security/keys/keyring.c