mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
Revert "driver core: refcounting fix"
This reverts commit 63ce18cfe6
.
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>
This commit is contained in:
parent
a967e127d0
commit
161e232b88
1 changed files with 0 additions and 6 deletions
|
@ -2419,12 +2419,6 @@ void module_remove_driver(struct device_driver *drv)
|
||||||
kfree(driver_name);
|
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);
|
EXPORT_SYMBOL(module_remove_driver);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue