usbip: vudc: fix: Clear already_seen flag also for ep0
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 1 Dec 2016 18:14:37 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2016 14:08:45 +0000 (15:08 +0100)
commit3e448e13a662fb20145916636127995cbf37eb83
tree8d2fa555df3a9ba6558f8cbdb0ffee66e7c7ab1e
parent66c79319f838df744b062a73c3dcdfd2156b7da7
usbip: vudc: fix: Clear already_seen flag also for ep0

ep_list inside gadget structure doesn't contain ep0.
It is stored separately in ep0 field.

This causes an urb hang if gadget driver decides to
delay setup handling. On host side this is visible as
timeout error when setting configuration.

This bug can be reproduced using for example any gadget
with mass storage function.

Fixes: abdb29574322 ("usbip: vudc: Add vudc_transfer")
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_transfer.c