Skip to content
Commit 014c90db authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

driver core: prevent device_for_each_child from oopsing



David Vrabel noticed that the wireless usb stack likes to call
device_for_each_chile() with an empty bus.  This used to work fine, but
now oopses.  This patch fixes the oops and makes the code behave like it
used to.

Reported-by: default avatarDavid Vrabel <david.vrabel@csr.com>
Tested-by: default avatarDavid Vrabel <david.vrabel@csr.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4ccb4579
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment