]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit1d6d167c2efcfe9539d9cffb1a1be9c92e39c2c0
treef875b8a19d539701b31ea4ffce40eee77c701103
parent6427e6c71c8b374761b661c4f355762794c171a1
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:
d3600bc 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