]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: net2272: Fix net2272_dequeue()
authorGuido Kiener <guido@kiener-muenchen.de>
Mon, 18 Mar 2019 08:18:34 +0000 (09:18 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 20 Mar 2019 06:50:42 +0000 (08:50 +0200)
commit8e7836ac3bdd19d01e7af1549ab0e78439594c90
treee0407a82eb2bce2c02aace5e15b6c9a4dd97987e
parent26270e2f913e16a3618f20fc078887e82734e2f4
usb: gadget: net2272: Fix net2272_dequeue()

Restore the status of ep->stopped in function net2272_dequeue().

When the given request is not found in the endpoint queue
the function returns -EINVAL without restoring the state of
ep->stopped. Thus the endpoint keeps blocked and does not transfer
any data anymore.

This fix is only compile-tested, since we do not have a
corresponding hardware. An analogous fix was tested in the sibling
driver. See "usb: gadget: net2280: Fix net2280_dequeue()"

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/net2272.c