summaryrefslogtreecommitdiff
path: root/arch/loongarch/pci/acpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/pci/acpi.c')
-rw-r--r--arch/loongarch/pci/acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/pci/acpi.c b/arch/loongarch/pci/acpi.c
index 365f7de771cb..1da4dc46df43 100644
--- a/arch/loongarch/pci/acpi.c
+++ b/arch/loongarch/pci/acpi.c
@@ -225,6 +225,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root)
if (bus) {
memcpy(bus->sysdata, info->cfg, sizeof(struct pci_config_window));
kfree(info);
+ kfree(root_ops);
} else {
struct pci_bus *child;