mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 17:26:40 +07:00
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>
This commit is contained in:
parent
1d02435594
commit
476f644edf
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user