Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d54ee1c authored by Vegard Nossum's avatar Vegard Nossum Committed by Linus Torvalds
Browse files

security: introduce missing kfree



Plug this leak.

Acked-by: default avatarDavid Howells <dhowells@redhat.com>
Cc: James Morris <jmorris@namei.org>
Cc: <stable@kernel.org>
Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1de9e8e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;