]> 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>
Wed, 2 Mar 2011 14:47:04 +0000 (09:47 -0500)
commite9053787c8757b2c210d3db2f866bc8036ae205f
tree22ac2a58ff9e2bf75c17a6800db9e848bbf6a3e0
parente28b4a0b20c3ca4b45cc3030906a09fd502a173d
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