Commit 74fd92c5 authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] key: plug request_key_auth memleak

Plug request_key_auth memleak.  This can be triggered by unprivileged
users, so is local DoS.
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c2059b2e
...@@ -96,6 +96,7 @@ static void request_key_auth_destroy(struct key *key) ...@@ -96,6 +96,7 @@ static void request_key_auth_destroy(struct key *key)
kenter("{%d}", key->serial); kenter("{%d}", key->serial);
key_put(rka->target_key); key_put(rka->target_key);
kfree(rka);
} /* end request_key_auth_destroy() */ } /* end request_key_auth_destroy() */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment