diff options
author | Hitoshi Mitake <mitake.hitoshi@gmail.com> | 2014-01-13 05:26:18 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-02-07 11:34:55 +0100 |
commit | b90fe1568ff9574952a2750a30b85481a0df5c32 (patch) | |
tree | 0adeb4e27c156526cfa93f1a90d63642877f4260 /drivers/edac/i3200_edac.c | |
parent | i5400_edac: Disable device when unloading module (diff) | |
download | linux-b90fe1568ff9574952a2750a30b85481a0df5c32.tar.xz linux-b90fe1568ff9574952a2750a30b85481a0df5c32.zip |
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 <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
Link: http://lkml.kernel.org/r/1389587178-10167-1-git-send-email-mitake.hitoshi@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/i3200_edac.c')
-rw-r--r-- | drivers/edac/i3200_edac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c index fa1326e5a4b0..022a70273ada 100644 --- a/drivers/edac/i3200_edac.c +++ b/drivers/edac/i3200_edac.c @@ -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[] = { |