Merge "KEYS: potential uninitialized variable"

This commit is contained in:
Linux Build Service Account 2016-09-30 18:23:26 -07:00 committed by Gerrit - the friendly Code Review server
commit bc7b1189ea

View file

@ -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 */