linux-stable/arch/x86/xen
Xiu Jianfeng 29198f667f x86/xen: Fix memory leak in xen_init_lock_cpu()
[ Upstream commit ca84ce153d ]

In xen_init_lock_cpu(), the @name has allocated new string by kasprintf(),
if bind_ipi_to_irqhandler() fails, it should be freed, otherwise may lead
to a memory leak issue, fix it.

Fixes: 2d9e1e2f58 ("xen: implement Xen-specific spinlocks")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20221123155858.11382-3-xiujianfeng@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:40:57 +01:00
..
apic.c
debugfs.c x86: xen: no need to check return value of debugfs_create functions 2019-06-03 15:49:07 +02:00
debugfs.h
efi.c xen/efi: have a common runtime setup function 2019-10-02 10:31:07 -04:00
enlighten.c x86/xen: Return from panic notifier 2019-10-07 17:53:30 -04:00
enlighten_hvm.c x86/xen: Add xen_no_vector_callback option to test PCI INTX delivery 2021-01-27 11:47:45 +01:00
enlighten_pv.c xen/x86: fix PV trap handling on secondary processors 2021-09-30 10:09:21 +02:00
enlighten_pvh.c xen/pvh: correctly setup the PV EFI interface for dom0 2019-04-25 10:36:25 -04:00
grant-table.c
irq.c
Kconfig x86/Kconfig: Add new X86_HV_CALLBACK_VECTOR config symbol 2019-06-11 21:21:11 +02:00
Makefile xen/pvh: Create a new file for Xen specific PVH code 2018-12-13 13:41:49 -05:00
mmu.c
mmu.h mm: update ptep_modify_prot_start/commit to take vm_area_struct as arg 2019-03-05 21:07:18 -08:00
mmu_hvm.c
mmu_pv.c xen: remove the exports for xen_{create,destroy}_contiguous_region 2019-09-11 12:43:26 +02:00
multicalls.c treewide: Switch printk users from %pf and %pF to %ps and %pS, respectively 2019-04-09 14:19:06 +02:00
multicalls.h
p2m.c xen: fix setting of max_pfn in shared_info 2021-09-22 12:26:20 +02:00
pci-swiotlb-xen.c
platform-pci-unplug.c
pmu.c xen: fix is_xen_pmu() 2022-04-15 14:18:21 +02:00
pmu.h xen: fix is_xen_pmu() 2022-04-15 14:18:21 +02:00
setup.c x86/xen: dont add memory above max allowed allocation 2019-02-18 06:52:51 +01:00
smp.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2023-01-18 11:40:57 +01:00
smp.h
smp_hvm.c xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:18:35 +02:00
smp_pv.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2023-01-18 11:40:57 +01:00
spinlock.c x86/xen: Fix memory leak in xen_init_lock_cpu() 2023-01-18 11:40:57 +01:00
suspend.c
suspend_hvm.c
suspend_pv.c
time.c xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:18:35 +02:00
trace.c
vdso.h
vga.c
xen-asm.S x86/paravirt: Make read_cr2() CALLEE_SAVE 2019-07-17 23:17:37 +02:00
xen-asm_32.S x86/asm/32: Add ENDs to some functions and relabel with SYM_CODE_* 2021-01-17 14:05:30 +01:00
xen-asm_64.S xen/pv: Fix a boot up hang revealed by int3 self test 2019-07-17 08:09:59 +02:00
xen-head.S x86/xen: fix booting 32-bit pv guest 2022-05-25 09:14:38 +02:00
xen-ops.h xen/events: only register debug interrupt for 2-level events 2023-01-18 11:40:57 +01:00