]> git.openfabrics.org - ~emulex/infiniband.git/commit
usb: chipidea: usbmisc: fix a potential race condition
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 30 Mar 2013 10:53:58 +0000 (12:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2013 15:13:57 +0000 (08:13 -0700)
commit00b9a1f97dbdfbdc1d268bf8d878937b150ce2d4
tree5eee4014f0eec0a49a989dd016a578e80e213b23
parentd48a24dbc0d3f21cbd594bcc2553d40cc5ed4fd9
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 <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/usbmisc_imx.c