summaryrefslogtreecommitdiff
path: root/kernel/kprobes.c
diff options
context:
space:
mode:
authorYi Yang <yiyang13@huawei.com>2022-11-18 10:15:34 +0900
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2022-11-18 10:15:34 +0900
commit0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb (patch)
tree5c75101639b1b9dbef0dd42fad838504a48fe19f /kernel/kprobes.c
parentd1776c0202aac8251e6b4cbe096ad2950ed6c506 (diff)
rethook: fix a potential memleak in rethook_alloc()
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: 54ecbe6f1ed5 ("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>
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions