linux-IllusionX/arch/loongarch
Wentao Guan 8f0ab03bfb LoongArch: Fix memleak in pci_acpi_scan_root()
[ Upstream commit 5016c3a31a6d74eaf2fdfdec673eae8fcf90379e ]

Add kfree(root_ops) in this case to avoid memleak of root_ops,
leaks when pci_find_bus() != 0.

Signed-off-by: Yuli Wang <wangyuli@uniontech.com>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:26:39 +02:00
..
boot
configs
crypto
include
kernel
kvm
lib
mm
net
pci
power
vdso
Kbuild
Kconfig
Kconfig.debug
Makefile