Files
linux/kernel
Yi Yang cbc5d1f9a8 rethook: fix a potential memleak in rethook_alloc()
commit 0a1ebe35cb upstream.

In rethook_alloc(), the variable rh is not freed or passed out
if handler is NULL, which could lead to a memleak, fix it.

Link: https://lore.kernel.org/all/20221110104438.88099-1-yiyang13@huawei.com/
[Masami: Add "rethook:" tag to the title.]

Fixes: 54ecbe6f1e ("rethook: Add a generic return hook")
Cc: stable@vger.kernel.org
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Acke-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-11-26 09:27:42 +01:00
..
2022-11-04 00:00:27 +09:00
2022-03-15 10:32:44 +01:00
2021-10-14 13:29:18 +02:00
2022-02-25 09:36:06 +01:00