diff options
author | Max Vozeler | 2011-01-12 14:02:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-01-21 01:01:50 +0100 |
commit | 01446ef5af4e8802369bf4d257806e24345a9371 (patch) | |
tree | c9a13a13f343589b79ef83368e017468778ad5f7 /drivers/staging/usbip/vhci.h | |
parent | staging: usbip: vhci: handle EAGAIN from SO_RCVTIMEO (diff) | |
download | kernel-qcow2-linux-01446ef5af4e8802369bf4d257806e24345a9371.tar.gz kernel-qcow2-linux-01446ef5af4e8802369bf4d257806e24345a9371.tar.xz kernel-qcow2-linux-01446ef5af4e8802369bf4d257806e24345a9371.zip |
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>
Diffstat (limited to 'drivers/staging/usbip/vhci.h')
-rw-r--r-- | drivers/staging/usbip/vhci.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h index 2cfd00ec1164..afc3b1a71881 100644 --- a/drivers/staging/usbip/vhci.h +++ b/drivers/staging/usbip/vhci.h @@ -100,9 +100,6 @@ struct vhci_hcd { * But, the index of this array begins from 0. */ struct vhci_device vdev[VHCI_NPORTS]; - - /* vhci_device which has not been assiged its address yet */ - int pending_port; }; |