提交 45b7c981 编写于 作者: H Hidetoshi Seto 提交者: Mauro Carvalho Chehab

i7core_edac: Fix the logic in i7core_remove()

commit 47251b4d960bdfa648b0d06dbc6d445f41cb3906 have changed
the logic for unexplained reasons.  It looks strange that it
can release i7core_dev without calling i7core_put_devices()
that releases i7core_dev->pdev.

Fix the part.
Signed-off-by: NHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 54a08ab1
...@@ -2095,9 +2095,9 @@ static void __devexit i7core_remove(struct pci_dev *pdev) ...@@ -2095,9 +2095,9 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
/* Release PCI resources */ /* Release PCI resources */
i7core_put_devices(i7core_dev); i7core_put_devices(i7core_dev);
list_del(&i7core_dev->list);
kfree(i7core_dev);
} }
list_del(&i7core_dev->list);
kfree(i7core_dev);
} }
probed--; probed--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册