projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2edbf56
)
i5400_edac: Disable device when unloading module
author
Aristeu Rozanski
<aris@redhat.com>
Thu, 16 Jan 2014 16:20:21 +0000
(11:20 -0500)
committer
Borislav Petkov
<bp@suse.de>
Fri, 7 Feb 2014 10:28:49 +0000
(11:28 +0100)
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>
drivers/edac/i5400_edac.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/edac/i5400_edac.c
b/drivers/edac/i5400_edac.c
index e080cbfa8fc9d0e4c8c255ac1165306be716c336..5381e98d9c0cff20998a111dc492f74f2288947c 100644
(file)
--- 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);
}