KEYS: Define a __key_get() wrapper to use rather than atomic_inc()
authorDavid Howells <dhowells@redhat.com>
Tue, 24 Sep 2013 09:35:16 +0000 (10:35 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 24 Sep 2013 09:35:16 +0000 (10:35 +0100)
commitccc3e6d9c9aea07a0b60b2b0bfc5b05a704b66d5
treed111175934b1454fa275fe056f8c6d320e504b01
parentd0a059cac6523b23ad7d743dec8783705aab1668
KEYS: Define a __key_get() wrapper to use rather than atomic_inc()

Define a __key_get() wrapper to use rather than atomic_inc() on the key usage
count as this makes it easier to hook in refcount error debugging.

Signed-off-by: David Howells <dhowells@redhat.com>
Documentation/security/keys.txt
include/linux/key.h
security/keys/key.c
security/keys/keyring.c
security/keys/process_keys.c