]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: refcount bug fix
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 7 Jan 2016 12:46:36 +0000 (07:46 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 7 Jan 2016 17:56:42 +0000 (12:56 -0500)
commit3dae99eac6f9a1a55593cb941fed9188e5dbbd5c
treef875b8a19d539701b31ea4ffce40eee77c701103
parent7c3ee28a9565e2a90cb20e061c6969125f4fffbc
KEYS: refcount bug fix

This patch fixes the key_ref leak, removes the unnecessary KEY_FLAG_KEEP
test before setting the flag, and cleans up the if/then brackets style
introduced in commit:
bc140d7 KEYS: prevent keys from being removed from specified keyrings

Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
security/keys/key.c
security/keys/keyctl.c