]> 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)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:12 +0000 (11:58 -0700)
commit0ba1a33e1e67b555104cb586454fbcffba88635d
tree8d201ed059c4d45e30abb68bf3281febb403f7e9
parent8ff66f1d0cbdce0a50d7db47863f610b3c45f9e0
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/staging/usbip/vhci.h
drivers/staging/usbip/vhci_hcd.c