From: Marc Kleine-Budde Date: Sat, 30 Mar 2013 10:53:58 +0000 (+0200) Subject: usb: chipidea: usbmisc: fix a potential race condition X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00b9a1f97dbdfbdc1d268bf8d878937b150ce2d4;p=pandora-kernel.git usb: chipidea: usbmisc: fix a potential race condition This fixes a potential race condition where the ci13xxx_imx glue code could be fast enough to call one of the usbmisc_ops before he got a valid value on the static usbmisc pointer. To fix that we first set usbmisc, then call usbmisc_set_ops(). Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed