Liao Chang 3645ed60ac csky/kprobe: reclaim insn_slot on kprobe unregistration
[ Upstream commit a2310c74d418deca0f1d749c45f1f43162510f51 ]

On kprobe registration kernel allocate one insn_slot for new kprobe,
but it forget to reclaim the insn_slot on unregistration, leading to a
potential leakage.

Reported-by: Chen Guokai <chenguokai17@mails.ucas.ac.cn>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:40:38 +02:00
..
2018-10-26 00:54:22 +08:00
2021-01-12 09:52:41 +08:00
2018-10-26 00:54:24 +08:00
2021-10-16 07:20:12 +08:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2021-12-14 10:57:22 +01:00