staging: ozwpan: Fix crash for race condition.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Thu, 22 Aug 2013 16:38:48 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2013 17:15:55 +0000 (10:15 -0700)
commit0a7bfbffbd9a94a31a4bac7e9ec29d18adc8e198
treeb0a723662a6cc4251b41a913df4775cc4e851c50
parentacb8d4056a5351748015464b1c551fcd310014ba
staging: ozwpan: Fix crash for race condition.

Do not allocate a port to new device or process URB when its status is
yet to be read. This avoids race condition when USB core read hub
status a bit late, while new device tries to acquire port.

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c