ipmr/ip6mr: Initialize the last assert time of mfc entries.
[pandora-kernel.git] / security / keys / key.c
index 4414abd..d3b2f6e 100644 (file)
@@ -572,7 +572,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->type, prealloc);
 
        /* wake up anyone waiting for a key to be constructed */