linux/arch/loongarch/kvm
Qiang Ma 1cf342a7c3 LoongArch: KVM: Fix kvm_device leak in kvm_pch_pic_destroy()
In kvm_ioctl_create_device(), kvm_device has allocated memory,
kvm_device->destroy() seems to be supposed to free its kvm_device
struct, but kvm_pch_pic_destroy() is not currently doing this, that
would lead to a memory leak.

So, fix it.

Cc: stable@vger.kernel.org
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
History 2026-01-17 10:57:03 +08:00
..
intc LoongArch: KVM: Fix kvm_device leak in kvm_pch_pic_destroy() 2026-01-17 10:57:03 +08:00
exit.c LoongArch: KVM: Add sign extension with kernel IOCSR read emulation 2025-09-23 23:37:08 +08:00
interrupt.c LoongArch: KVM: Add AVEC basic support 2025-11-27 11:00:18 +08:00
irqfd.c LoongArch: KVM: Add irqfd support 2024-11-13 16:18:27 +08:00
Kconfig KVM: Make support for kvm_arch_vcpu_async_ioctl() mandatory 2025-11-05 11:03:10 -08:00
main.c LoongArch: KVM: Fix multiple typos of KVM code 2025-04-26 09:58:13 +08:00
Makefile Fix mis-uses of 'cc-option' for warning disablement 2025-04-23 10:08:29 -07:00
mmu.c LoongArch: KVM: Set page with write attribute if dirty track disabled 2025-11-10 08:37:07 +08:00
switch.S LoongArch: KVM: Remove PGD saving during VM context switch 2025-03-18 16:48:08 +08:00
timer.c LoongArch: KVM: Add delay until timer interrupt injected 2025-11-10 08:37:07 +08:00
tlb.c LoongArch: KVM: Delay secondary mmu tlb flush until guest entry 2024-07-09 16:25:50 +08:00
trace.h LoongArch: KVM: Move kvm_iocsr tracepoint out of generic code 2025-09-23 23:37:26 +08:00
vcpu.c LoongArch changes for v6.19 2025-12-13 05:44:03 +12:00
vm.c LoongArch: KVM: Add AVEC basic support 2025-11-27 11:00:18 +08:00