aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/keys/request_key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/keys/request_key.c b/security/keys/request_key.c
index 0d26f689bd77..0088dd8bf68a 100644
--- a/security/keys/request_key.c
+++ b/security/keys/request_key.c
@@ -537,6 +537,8 @@ int wait_for_key_construction(struct key *key, bool intr)
537 intr ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE); 537 intr ? TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE);
538 if (ret < 0) 538 if (ret < 0)
539 return ret; 539 return ret;
540 if (test_bit(KEY_FLAG_NEGATIVE, &key->flags))
541 return -ENOKEY;
540 return key_validate(key); 542 return key_validate(key);
541} 543}
542EXPORT_SYMBOL(wait_for_key_construction); 544EXPORT_SYMBOL(wait_for_key_construction);