linux/arch/loongarch
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>
2026-01-17 10:57:03 +08:00
..
boot LoongArch: dts: loongson-2k1000: Fix i2c-gpio node names 2026-01-17 10:56:53 +08:00
configs LoongArch changes for v6.19 2025-12-13 05:44:03 +12:00
crypto loongarch/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
include LoongArch: Complete CPUCFG registers definition 2025-12-31 15:19:10 +08:00
kernel LoongArch: Fix PMU counter allocation for mixed-type event groups 2026-01-17 10:56:43 +08:00
kvm LoongArch: KVM: Fix kvm_device leak in kvm_pch_pic_destroy() 2026-01-17 10:57:03 +08:00
lib LoongArch: Adjust misc routines for 32BIT/64BIT 2025-12-08 18:09:17 +08:00
mm LoongArch: Set correct protection_map[] for VM_NONE/VM_SHARED 2025-12-31 15:19:10 +08:00
net LoongArch: BPF: Enhance the bpf_arch_text_poke() function 2025-12-31 15:19:21 +08:00
pci LoongArch: Add new PCI ID for pci_fixup_vgadev() 2025-12-06 10:39:49 +08:00
power LoongArch: Adjust misc routines for 32BIT/64BIT 2025-12-08 18:09:17 +08:00
vdso LoongArch changes for v6.19 2025-12-13 05:44:03 +12:00
Kbuild LoongArch: Migrate to the generic rule for built-in DTB 2025-01-25 18:51:33 +08:00
Kconfig LoongArch: Add atomic operations for 32BIT/64BIT 2025-12-06 10:40:32 +08:00
Kconfig.debug LoongArch: Only allow OBJTOOL & ORC unwinder if toolchain supports -mthin-add-sub 2024-06-21 10:18:40 +08:00
Makefile LoongArch: Adjust default config files for 32BIT/64BIT 2025-12-08 18:09:17 +08:00