diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/keys/request_key_auth.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/keys/request_key_auth.c b/security/keys/request_key_auth.c index 6cff37529b80..60d4e3f5e4bb 100644 --- a/security/keys/request_key_auth.c +++ b/security/keys/request_key_auth.c | |||
@@ -251,6 +251,8 @@ struct key *key_get_instantiation_authkey(key_serial_t target_id) | |||
251 | 251 | ||
252 | if (IS_ERR(authkey_ref)) { | 252 | if (IS_ERR(authkey_ref)) { |
253 | authkey = ERR_CAST(authkey_ref); | 253 | authkey = ERR_CAST(authkey_ref); |
254 | if (authkey == ERR_PTR(-EAGAIN)) | ||
255 | authkey = ERR_PTR(-ENOKEY); | ||
254 | goto error; | 256 | goto error; |
255 | } | 257 | } |
256 | 258 | ||