Commit bbc560ae authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

edac_core: Print debug messages at release calls

This is important to track a nasty bug at the free logic.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ac99768c
...@@ -235,6 +235,8 @@ EXPORT_SYMBOL_GPL(edac_mc_alloc); ...@@ -235,6 +235,8 @@ EXPORT_SYMBOL_GPL(edac_mc_alloc);
*/ */
void edac_mc_free(struct mem_ctl_info *mci) void edac_mc_free(struct mem_ctl_info *mci)
{ {
debugf1("%s()\n", __func__);
edac_mc_unregister_sysfs_main_kobj(mci); edac_mc_unregister_sysfs_main_kobj(mci);
} }
EXPORT_SYMBOL_GPL(edac_mc_free); EXPORT_SYMBOL_GPL(edac_mc_free);
......
...@@ -712,6 +712,8 @@ int edac_mc_register_sysfs_main_kobj(struct mem_ctl_info *mci) ...@@ -712,6 +712,8 @@ int edac_mc_register_sysfs_main_kobj(struct mem_ctl_info *mci)
*/ */
void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci) void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci)
{ {
debugf1("%s()\n", __func__);
/* delete the kobj from the mc_kset */ /* delete the kobj from the mc_kset */
kobject_put(&mci->edac_mci_kobj); kobject_put(&mci->edac_mci_kobj);
} }
......
...@@ -2086,6 +2086,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev) ...@@ -2086,6 +2086,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
edac_mc_del_mc(&i7core_dev->pdev[0]->dev); edac_mc_del_mc(&i7core_dev->pdev[0]->dev);
/* Free data */ /* Free data */
debugf1("%s: free structs\n");
kfree(mci->ctl_name); kfree(mci->ctl_name);
edac_mc_free(mci); edac_mc_free(mci);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment