diff options
author | Aristeu Rozanski <aris@redhat.com> | 2014-01-16 17:20:21 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2014-02-07 11:28:49 +0100 |
commit | c2e650c49a1795238895a474873a12c6c5662833 (patch) | |
tree | 6fa654c17f80c9942e74744b37e23db74506ed86 /drivers/edac/i5400_edac.c | |
parent | e752x_edac: Simplify call to pci_get_device() (diff) | |
download | linux-c2e650c49a1795238895a474873a12c6c5662833.tar.xz linux-c2e650c49a1795238895a474873a12c6c5662833.zip |
i5400_edac: Disable device when unloading module
This was found by Huqiu Liu using a static analysis.
Reported-by: Huqiu Liu <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Link: http://lkml.kernel.org/r/20140116162021.GY15716@redhat.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/i5400_edac.c')
-rw-r--r-- | drivers/edac/i5400_edac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c index e080cbfa8fc9..5381e98d9c0c 100644 --- a/drivers/edac/i5400_edac.c +++ b/drivers/edac/i5400_edac.c @@ -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); } |