[PATCH] driver core: safely unbind drivers for devices not on a bus
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 31 Mar 2006 16:52:25 +0000 (11:52 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Apr 2006 18:41:24 +0000 (11:41 -0700)
commit0f836ca4c122f4ef096110d652a6326fe34e6961
tree5b249f2f255a7260d1a8926eb0a9e6d7e45ac524
parent4508a7a734b111b8b7e39986237d84acb1168dd0
[PATCH] driver core: safely unbind drivers for devices not on a bus

This patch (as667) changes the __device_release_driver() routine to
prevent it from crashing when it runs across a device not on any bus.
This seems logical, inasmuch as the corresponding bus_add_device()
routine has an explicit check allowing it to accept such devices.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/dd.c