aboutsummaryrefslogtreecommitdiffstats
path: root/security/keys/request_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/keys/request_key.c')
-rw-r--r--security/keys/request_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/request_key.c b/security/keys/request_key.c
index 6381e616c477..5ecc5057fb54 100644
--- a/security/keys/request_key.c
+++ b/security/keys/request_key.c
@@ -389,7 +389,7 @@ struct key *request_key_and_link(struct key_type *type,
389 if (!IS_ERR(key_ref)) { 389 if (!IS_ERR(key_ref)) {
390 key = key_ref_to_ptr(key_ref); 390 key = key_ref_to_ptr(key_ref);
391 } else if (PTR_ERR(key_ref) != -EAGAIN) { 391 } else if (PTR_ERR(key_ref) != -EAGAIN) {
392 key = ERR_PTR(PTR_ERR(key_ref)); 392 key = ERR_CAST(key_ref);
393 } else { 393 } else {
394 /* the search failed, but the keyrings were searchable, so we 394 /* the search failed, but the keyrings were searchable, so we
395 * should consult userspace if we can */ 395 * should consult userspace if we can */