Merge tag 'v3.8-rc7' into next
[sfrench/cifs-2.6.git] / drivers / edac / edac_pci_sysfs.c
index 0056c4dae9d52cc24985200dbb58b724be73c3ed..e8658e451762647774f71b79101f61efb39194d9 100644 (file)
@@ -429,8 +429,8 @@ static void edac_pci_main_kobj_teardown(void)
        if (atomic_dec_return(&edac_pci_sysfs_refcount) == 0) {
                edac_dbg(0, "called kobject_put on main kobj\n");
                kobject_put(edac_pci_top_main_kobj);
+               edac_put_sysfs_subsys();
        }
-       edac_put_sysfs_subsys();
 }
 
 /*