summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorAndrew Patterson <andrew.patterson@hp.com>2009-10-12 21:14:15 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-11-04 22:06:38 +0100
commit476f644edf7c22b47e6a118e4a1e138112a5ef14 (patch)
treebafecfc91290c5d3eb70d3bf7c7561b61bc97c66 /drivers/pci/pcie
parentPCI: use better error return values in aer_inject (diff)
downloadlinux-476f644edf7c22b47e6a118e4a1e138112a5ef14.tar.xz
linux-476f644edf7c22b47e6a118e4a1e138112a5ef14.zip
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/pci/pcie')
-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 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);
}