History

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.

Greg Kroah-Hartman committed 19 years ago

Commit 161e2321 parent a967e121 file · +0 −6Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/module.c+0−6
@@ -2419,12 +2419,6 @@ void module_remove_driver(struct device_driver *drv) · 2418 unmodified lines
2419 kfree(driver_name);2419 kfree(driver_name);
2420 }2420 }
2421 }2421 }
2422 /*
2423 * Undo the additional reference we added in module_add_driver()
2424 * via kset_find_obj()
2425 */
2426 if (drv->mod_name)
2427 kobject_put(&drv->kobj);
2428}2422}
2429EXPORT_SYMBOL(module_remove_driver);2423EXPORT_SYMBOL(module_remove_driver);
2430#endif2424#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t