summaryrefslogtreecommitdiffstats
path: root/security/keys/key.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2016-08-04 13:24:41 +0930
committerJoel Stanley <joel@jms.id.au>2016-08-04 13:24:41 +0930
commitb916113d820adc856aad6b8ebc1a25403ff7f293 (patch)
treeabddf239d912c4868faf9fbc69c67d980f74c7df /security/keys/key.c
parent2e4db6c6be91ade074c1a150a6db2aeb4920e25c (diff)
parentb05965f284db3e086022f4e318e46cb5bffb1376 (diff)
downloadtalos-obmc-linux-openbmc-4.4-20160804-1.tar.gz
talos-obmc-linux-openbmc-4.4-20160804-1.zip
Merge tag 'v4.4.16' into dev-4.4openbmc-4.4-20160804-1
This is the 4.4.16 stable release Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'security/keys/key.c')
-rw-r--r--security/keys/key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c
index ab7997ded725..534808915371 100644
--- a/security/keys/key.c
+++ b/security/keys/key.c
@@ -578,7 +578,7 @@ int key_reject_and_link(struct key *key,
mutex_unlock(&key_construction_mutex);
- if (keyring)
+ if (keyring && link_ret == 0)
__key_link_end(keyring, &key->index_key, edit);
/* wake up anyone waiting for a key to be constructed */
OpenPOWER on IntegriCloud