From: Alan Stern Date: Fri, 4 Dec 2009 16:06:57 +0000 (-0500) Subject: Driver core: fix race in dev_driver_string X-Git-Tag: v2.6.33-rc1~314^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3589972e51fac1e02d0aaa576fa47f568cb94d40;p=pandora-kernel.git Driver core: fix race in dev_driver_string This patch (as1310) works around a race in dev_driver_string(). If the device is unbound while the function is running, dev->driver might become NULL after we test it and before we dereference it. Signed-off-by: Alan Stern Cc: stable Cc: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed