From: Stefani Seibold Date: Sat, 6 Mar 2010 16:50:14 +0000 (+0100) Subject: driver-core: fix potential race condition in drivers/base/dd.c X-Git-Tag: v2.6.35-rc1~459^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbb88fadf7dc2dd6d0d1aa88ff521b2f8552996a;p=pandora-kernel.git driver-core: fix potential race condition in drivers/base/dd.c This patch fix a potential race condition in the driver_bound() function in the file driver/base/dd.c. The broadcast of the BUS_NOTIFY_BOUND_DRIVER notifier should be done after adding the new device to the driver list. Otherwise notifier listener will fail if they use functions like usb_find_interface(). The patch is against kernel 2.6.33. Please merge it. Signed-off-by: Stefani Seibold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed