linux/security/keys
Dan Carpenter 92e90c20dc KEYS: Fix an error code in request_master_key()
commit 57cb17e764 upstream.

This function has two callers and neither are able to handle a NULL
return.  Really, -EINVAL is the correct thing return here anyway.  This
fixes some static checker warnings like:

	security/keys/encrypted-keys/encrypted.c:709 encrypted_key_decrypt()
	error: uninitialized symbol 'master_key'.

Fixes: 7e70cb4978 ("keys: add new key-type encrypted")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-15 11:57:47 +02:00
..
encrypted-keys KEYS: Fix an error code in request_master_key() 2017-07-15 11:57:47 +02:00
big_key.c
compat.c
gc.c KEYS: Change the name of the dead type to ".dead" to prevent user access 2017-04-27 09:09:31 +02:00
internal.h
Kconfig
key.c KEYS: fix freeing uninitialized memory in key_update() 2017-06-14 13:16:21 +02:00
keyctl.c KEYS: fix dereferencing NULL payload with nonzero length 2017-06-14 13:16:20 +02:00
keyring.c
Makefile
permission.c
persistent.c
proc.c
process_keys.c KEYS: fix keyctl_set_reqkey_keyring() to not leak thread keyrings 2017-04-27 09:09:31 +02:00
request_key_auth.c
request_key.c
sysctl.c
trusted.c
trusted.h
user_defined.c