mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
i3200_edac: Add a missing pci_disable_device() on the exit path
Currently, i3200_edac.c forgets to call pci_disable_device() during a process of disabling device. This patch adds that call. The problem was detected by Huqiu Liu. Reported-by: Huqiu Liu <[email protected]> Signed-off-by: Hitoshi Mitake <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
c2e650c49a
commit
b90fe1568f
1 changed files with 2 additions and 0 deletions
|
|
@ -464,6 +464,8 @@ static void i3200_remove_one(struct pci_dev *pdev)
|
|||
iounmap(priv->window);
|
||||
|
||||
edac_mc_free(mci);
|
||||
|
||||
pci_disable_device(pdev);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i3200_pci_tbl[] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue