staging: usbip: claim ports used by shared devices
authorValentina Manea <valentina.manea.m@gmail.com>
Sat, 8 Mar 2014 12:53:34 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Mar 2014 06:48:43 +0000 (22:48 -0800)
commit6080cd0e9239469524d2aa07250ad4b9f383960d
tree0682e223b8d1345188251e6dd6b05fc1fb4f63c6
parenta46034ca57ed6bdbb574a46ca3453061946b62f9
staging: usbip: claim ports used by shared devices

A device should not be able to be used concurrently both by
the server and the client. Claiming the port used by the
shared device ensures no interface drivers bind to it and
that it is not usable from the server.

Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_dev.c
drivers/usb/core/hub.c
drivers/usb/core/usb.h
include/linux/usb.h