summaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-03-10 00:25:04 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2007-03-10 00:25:04 +0100
commit161e232b8823e230d4fdf8064e606bbdf26f47e2 (patch)
tree7d29c9e38febd3e8baa1351b2d28555db5b34f8b /kernel/module.c
parentMerge branch 'merge' of master.kernel.org:/pub/scm/linux/kernel/git/paulus/po... (diff)
downloadlinux-161e232b8823e230d4fdf8064e606bbdf26f47e2.tar.xz
linux-161e232b8823e230d4fdf8064e606bbdf26f47e2.zip
Revert "driver core: refcounting fix"
This reverts commit 63ce18cfe685115ff8d341bae4c9204a79043cf0. It was the incorrect fix and causes a reference counting bug whenever any driver module is removed from the system. Mike Galbraith <efault@gmx.de> is looking for the real fix for his problem. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/module.c b/kernel/module.c
index f77e893e4620..fbc51de6444e 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2419,12 +2419,6 @@ void module_remove_driver(struct device_driver *drv)
kfree(driver_name);
}
}
- /*
- * Undo the additional reference we added in module_add_driver()
- * via kset_find_obj()
- */
- if (drv->mod_name)
- kobject_put(&drv->kobj);
}
EXPORT_SYMBOL(module_remove_driver);
#endif