From: Andrew Patterson Date: Mon, 12 Oct 2009 19:14:15 +0000 (-0600) Subject: PCI: fix memory leak in aer_inject X-Git-Tag: MMI-PSA29.97-13-9~25687^2~75 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=476f644edf7c22b47e6a118e4a1e138112a5ef14;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git PCI: fix memory leak in aer_inject Fixed probable typo in aer_inject cleanup code resulting in a memory leak. Acked-by: Huang Ying Signed-off-by: Andrew Patterson Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c index da2ad6eaee17..2246bf7aee7e 100644 --- a/drivers/pci/pcie/aer/aer_inject.c +++ b/drivers/pci/pcie/aer/aer_inject.c @@ -474,7 +474,7 @@ static void __exit aer_inject_exit(void) } spin_lock_irqsave(&inject_lock, flags); - list_for_each_entry_safe(err, err_next, &pci_bus_ops_list, list) { + list_for_each_entry_safe(err, err_next, &einjected, list) { list_del(&err->list); kfree(err); }