diff options
author | Xiu Jianfeng | 2022-11-23 23:58:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-12-31 13:31:59 +0100 |
commit | f698f88f042c6a19bbbac6c84782039a75e7f349 (patch) | |
tree | 65fa4897fa32c38f9cb619a7c9a3c742ce8451bb /arch/microblaze/kernel/exceptions.c | |
parent | daea9a0647dfdf76a6dcfe3aa94a953313643133 (diff) |
x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
[ Upstream commit 69143f60868b3939ddc89289b29db593b647295e ]
These local variables @{resched|pmu|callfunc...}_name saves the new
string allocated by kasprintf(), and when bind_{v}ipi_to_irqhandler()
fails, it goes to the @fail tag, and calls xen_smp_intr_free{_pv}() to
free resource, however the new string is not saved, which cause a memory
leak issue. fix it.
Fixes: 9702785a747a ("i386: move xen")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20221123155858.11382-2-xiujianfeng@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/microblaze/kernel/exceptions.c')
0 files changed, 0 insertions, 0 deletions