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>
Fri, 21 Jan 2011 00:01:50 +0000 (16:01 -0800)
commit01446ef5af4e8802369bf4d257806e24345a9371
treec9a13a13f343589b79ef83368e017468778ad5f7
parentbd65f6233f6bc3233e7910752689fe3a45dc2e0c
staging: usbip: vhci: use urb->dev->portnum to find port

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