edac_core: Print debug messages at release calls
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Aug 2010 21:22:43 +0000 (18:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:20:38 +0000 (11:20 -0200)
This is important to track a nasty bug at the free logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/edac_mc.c
drivers/edac/edac_mc_sysfs.c
drivers/edac/i7core_edac.c

index b10b45cc787082569f060e12b7906f02beb1b3d7..889ce7566b5619ddc092e8b5d3657a1b7fcdca15 100644 (file)
@@ -235,6 +235,8 @@ EXPORT_SYMBOL_GPL(edac_mc_alloc);
  */
 void edac_mc_free(struct mem_ctl_info *mci)
 {
+       debugf1("%s()\n", __func__);
+
        edac_mc_unregister_sysfs_main_kobj(mci);
 }
 EXPORT_SYMBOL_GPL(edac_mc_free);
index 7024b873a3b9b3b5da9c8b487364e728af61c733..ddd765253630498997310e0a03ee46a18c441e46 100644 (file)
@@ -712,6 +712,8 @@ fail_out:
  */
 void edac_mc_unregister_sysfs_main_kobj(struct mem_ctl_info *mci)
 {
+       debugf1("%s()\n", __func__);
+
        /* delete the kobj from the mc_kset */
        kobject_put(&mci->edac_mci_kobj);
 }
index 11c61b4d81491767ad74fc995df8c1f5362ea4ca..b0559973c66f7b55fe6bc35785b63f8bb8f759f5 100644 (file)
@@ -2086,6 +2086,7 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
                        edac_mc_del_mc(&i7core_dev->pdev[0]->dev);
 
                        /* Free data */
+                       debugf1("%s: free structs\n");
                        kfree(mci->ctl_name);
                        edac_mc_free(mci);
 
This page took 0.028358 seconds and 5 git commands to generate.