diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2009-10-12 13:14:15 -0600 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-04 13:06:38 -0800 |
commit | 476f644edf7c22b47e6a118e4a1e138112a5ef14 (patch) | |
tree | bafecfc91290c5d3eb70d3bf7c7561b61bc97c66 | |
parent | 1d0243559497b9cab00099c49a5ba3222cd6576f (diff) | |
download | linux-stable-476f644edf7c22b47e6a118e4a1e138112a5ef14.tar.gz linux-stable-476f644edf7c22b47e6a118e4a1e138112a5ef14.tar.bz2 linux-stable-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>
-rw-r--r-- | drivers/pci/pcie/aer/aer_inject.c | 2 |
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); } |