PCI: fix memory leak in aer_inject
authorAndrew Patterson <andrew.patterson@hp.com>
Mon, 12 Oct 2009 19:14:15 +0000 (13:14 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Nov 2009 21:06:38 +0000 (13:06 -0800)
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>
drivers/pci/pcie/aer/aer_inject.c

index da2ad6eaee17ace90470fc19acbb43674d3aa09b..2246bf7aee7ed8a741769426451ee146314d622a 100644 (file)
@@ -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);
        }