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
24192419 kfree(driver_name);
24202420 }
24212421 }
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);
24282422 }
24292423 EXPORT_SYMBOL(module_remove_driver);
24302424 #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