diff options
author | David Howells <dhowells@redhat.com> | 2005-10-07 10:01:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-08 17:53:31 -0400 |
commit | 74fd92c511bd4a0771ac0faaaef38bb1be3a29f6 (patch) | |
tree | 86d0006605f5abe600a2b3a7f6d03cf554c4e761 /security/keys | |
parent | c2059b2e0b209a0674c21f78337bb158d3ccb22b (diff) |
[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: Chris Wright <chrisw@osdl.org>
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/keys')
-rw-r--r-- | security/keys/request_key_auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/request_key_auth.c b/security/keys/request_key_auth.c index 1ecd3d3fa9f8..f80a501e27f1 100644 --- a/security/keys/request_key_auth.c +++ b/security/keys/request_key_auth.c | |||
@@ -96,6 +96,7 @@ static void request_key_auth_destroy(struct key *key) | |||
96 | kenter("{%d}", key->serial); | 96 | kenter("{%d}", key->serial); |
97 | 97 | ||
98 | key_put(rka->target_key); | 98 | key_put(rka->target_key); |
99 | kfree(rka); | ||
99 | 100 | ||
100 | } /* end request_key_auth_destroy() */ | 101 | } /* end request_key_auth_destroy() */ |
101 | 102 | ||