Commit 476f644e authored by Andrew Patterson's avatar Andrew Patterson Committed by Jesse Barnes

PCI: fix memory leak in aer_inject

Fixed probable typo in aer_inject cleanup code resulting in a memory
leak.
Acked-by: default avatarHuang Ying <ying.huang@intel.com>
Signed-off-by: default avatarAndrew Patterson <andrew.patterson@hp.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 1d024355
...@@ -474,7 +474,7 @@ static void __exit aer_inject_exit(void) ...@@ -474,7 +474,7 @@ static void __exit aer_inject_exit(void)
} }
spin_lock_irqsave(&inject_lock, flags); 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); list_del(&err->list);
kfree(err); kfree(err);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment