Milan Svoboda 07cb7f23d0 USB: correct locking in gadgetfs_disconnect
This patch moves spin_lock (&dev->lock) before first use of dev.
I think that test to the state of device should be protected with
this spin_lock...

Signed-off-by: Milan Svoboda <msvoboda@ra.rockwell.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-09-27 11:58:52 -07:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-07-03 15:32:47 +01:00
2006-07-12 16:03:24 -07:00
2006-07-12 16:03:24 -07:00
2006-07-12 16:03:24 -07:00
2005-04-16 15:20:36 -07:00
2006-07-12 16:03:24 -07:00