Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KEYS: Fix an error code in request_master_key()
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: 7e70cb4 ("keys: add new key-type encrypted") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Mimi Zohar <[email protected]> Signed-off-by: James Morris <[email protected]>
- Loading branch information