summaryrefslogtreecommitdiff
path: root/security/keys/permission.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2016-01-07 12:46:36 (GMT)
committerMimi Zohar <zohar@linux.vnet.ibm.com>2016-01-07 17:56:42 (GMT)
commit1d6d167c2efcfe9539d9cffb1a1be9c92e39c2c0 (patch)
treef875b8a19d539701b31ea4ffce40eee77c701103 /security/keys/permission.c
parent6427e6c71c8b374761b661c4f355762794c171a1 (diff)
downloadlinux-1d6d167c2efcfe9539d9cffb1a1be9c92e39c2c0.tar.xz
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>
Diffstat (limited to 'security/keys/permission.c')
0 files changed, 0 insertions, 0 deletions