From: Greg Kroah-Hartman Date: Wed, 15 Apr 2009 23:00:12 +0000 (-0700) Subject: driver core: prevent device_for_each_child from oopsing X-Git-Tag: v2.6.30-rc3~59^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=014c90dbb9b63bae067afc80a7931a76c5268ae3;p=pandora-kernel.git 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: David Vrabel Tested-by: David Vrabel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed