Merge "KEYS: potential uninitialized variable"
This commit is contained in:
commit
bc7b1189ea
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue