]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: usbip: vhci: use urb->dev->portnum to find port
authorMax Vozeler <max@vozeler.com>
Wed, 12 Jan 2011 13:02:05 +0000 (15:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:45:18 +0000 (12:45 -0700)
commitfd54872c463767bed1798f6f1f2c61258aeeb91e
treeb4ae6e70538874a5e0efc4fc8dcaf679fe63ca76
parent16cf40a5c2116225d68251cc02c7092d80d067bf
staging: usbip: vhci: use urb->dev->portnum to find port

commit 01446ef5af4e8802369bf4d257806e24345a9371 upstream.

The access to pending_port was racy when two devices
were being attached at the same time.

Signed-off-by: Max Vozeler <max@vozeler.com>
Tested-by: Mark Wehby <MWehby@luxotticaRetail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci.h
drivers/staging/usbip/vhci_hcd.c