]> git.neil.brown.name Git - history.git/commit
Do manual traversing of drivers' devices list when unbinding the driver.
authorPatrick Mochel <mochel@osdl.org>
Mon, 3 Jun 2002 12:51:12 +0000 (05:51 -0700)
committerPatrick Mochel <mochel@osdl.org>
Mon, 3 Jun 2002 12:51:12 +0000 (05:51 -0700)
commit96d36ec0ebe75b6a759b899813c74eeb011af7c2
treec8b85461a05ec431d93f6a1351a37fec22f465cd
parentd6022129c2de4e47f258013743809a3da69edce4
Do manual traversing of drivers' devices list when unbinding the driver.

driver_unbind was called when drv->refcount == 0.
It would call driver_for_each_dev to do the unbinding
The first thing that would do was get_device, which...
BUG()'d if drv->refcount == 0.
Duh.
drivers/base/core.c