summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Patterson <andrew.patterson@hp.com>2009-10-12 13:14:15 -0600
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-04 13:06:38 -0800
commit476f644edf7c22b47e6a118e4a1e138112a5ef14 (patch)
treebafecfc91290c5d3eb70d3bf7c7561b61bc97c66 /drivers
parent1d0243559497b9cab00099c49a5ba3222cd6576f (diff)
downloadop-kernel-dev-476f644edf7c22b47e6a118e4a1e138112a5ef14.zip
op-kernel-dev-476f644edf7c22b47e6a118e4a1e138112a5ef14.tar.gz
PCI: fix memory leak in aer_inject
Fixed probable typo in aer_inject cleanup code resulting in a memory leak. Acked-by: Huang Ying <ying.huang@intel.com> Signed-off-by: Andrew Patterson <andrew.patterson@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pcie/aer/aer_inject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aer/aer_inject.c b/drivers/pci/pcie/aer/aer_inject.c
index da2ad6e..2246bf7 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);
}
OpenPOWER on IntegriCloud