diff options
author | Andrew Patterson <andrew.patterson@hp.com> | 2009-10-12 15:14:15 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-04 16:06:38 -0500 |
commit | 476f644edf7c22b47e6a118e4a1e138112a5ef14 (patch) | |
tree | bafecfc91290c5d3eb70d3bf7c7561b61bc97c66 /drivers/pci | |
parent | 1d0243559497b9cab00099c49a5ba3222cd6576f (diff) |
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')
-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) | |||
474 | } | 474 | } |
475 | 475 | ||
476 | spin_lock_irqsave(&inject_lock, flags); | 476 | spin_lock_irqsave(&inject_lock, flags); |
477 | list_for_each_entry_safe(err, err_next, &pci_bus_ops_list, list) { | 477 | list_for_each_entry_safe(err, err_next, &einjected, list) { |
478 | list_del(&err->list); | 478 | list_del(&err->list); |
479 | kfree(err); | 479 | kfree(err); |
480 | } | 480 | } |