]> git.baikalelectronics.ru Git - kernel.git/commit
usbcore: check usb device's state before sending a Set SEL control transfer
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 4 Sep 2013 14:24:45 +0000 (17:24 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 23 Sep 2013 22:43:32 +0000 (15:43 -0700)
commitaf05daac0a46a9eeaea74174f8e37b6b23813b8d
tree35645e216dc920570fe00cbc36cb60a7f332a5a2
parent47ce9949690830d3135ea35ff9be4387fdba309f
usbcore: check usb device's state before sending a Set SEL control transfer

Set SEL control urbs cannot be sent to a device in unconfigured state.
This patch adds a check in usb_req_set_sel() to ensure the usb device's
state is USB_STATE_CONFIGURED.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reported-by: Martin MOKREJS <mmokrejs@gmail.com>
Suggested-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hub.c