diff options
author | David Howells <dhowells@redhat.com> | 2013-09-24 11:35:16 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2013-09-24 11:35:16 +0200 |
commit | ccc3e6d9c9aea07a0b60b2b0bfc5b05a704b66d5 (patch) | |
tree | d111175934b1454fa275fe056f8c6d320e504b01 /security/keys/key.c | |
parent | KEYS: Search for auth-key by name rather than target key ID (diff) | |
download | linux-ccc3e6d9c9aea07a0b60b2b0bfc5b05a704b66d5.tar.xz linux-ccc3e6d9c9aea07a0b60b2b0bfc5b05a704b66d5.zip |
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>
Diffstat (limited to 'security/keys/key.c')
-rw-r--r-- | security/keys/key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/keys/key.c b/security/keys/key.c index 7e6bc396bb23..1e23cc288106 100644 --- a/security/keys/key.c +++ b/security/keys/key.c @@ -644,7 +644,7 @@ found: /* this races with key_put(), but that doesn't matter since key_put() * doesn't actually change the key */ - atomic_inc(&key->usage); + __key_get(key); error: spin_unlock(&key_serial_lock); |