mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
i5400_edac: Disable device when unloading module
This was found by Huqiu Liu using a static analysis. Reported-by: Huqiu Liu <[email protected]> Signed-off-by: Aristeu Rozanski <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
2edbf56997
commit
c2e650c49a
1 changed files with 2 additions and 0 deletions
|
|
@ -1408,6 +1408,8 @@ static void i5400_remove_one(struct pci_dev *pdev)
|
|||
/* retrieve references to resources, and free those resources */
|
||||
i5400_put_devices(mci);
|
||||
|
||||
pci_disable_device(pdev);
|
||||
|
||||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue