提交 c2e650c4 编写于 作者: A Aristeu Rozanski 提交者: Borislav Petkov

i5400_edac: Disable device when unloading module

This was found by Huqiu Liu using a static analysis.
Reported-by: NHuqiu Liu <liuhq11@mails.tsinghua.edu.cn>
Signed-off-by: NAristeu Rozanski <aris@redhat.com>
Link: http://lkml.kernel.org/r/20140116162021.GY15716@redhat.comSigned-off-by: NBorislav Petkov <bp@suse.de>
上级 2edbf569
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册