mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:20:50 +07:00
security: introduce missing kfree
Plug this leak. Acked-by: David Howells <dhowells@redhat.com> Cc: James Morris <jmorris@namei.org> Cc: <stable@kernel.org> Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1de9e8e70f
commit
0d54ee1c78
@ -270,6 +270,7 @@ long keyctl_join_session_keyring(const char __user *_name)
|
||||
|
||||
/* join the session */
|
||||
ret = join_session_keyring(name);
|
||||
kfree(name);
|
||||
|
||||
error:
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user