]> Git Repo - linux.git/commitdiff
usb: dwc3: decrement queued_requests
authorJanusz Dziedzic <[email protected]>
Wed, 9 Nov 2016 10:01:31 +0000 (11:01 +0100)
committerFelipe Balbi <[email protected]>
Fri, 18 Nov 2016 11:54:14 +0000 (13:54 +0200)
In case we will fail to STARTTRANSFER we should
also decrement queued_requests.

Signed-off-by: Janusz Dziedzic <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
drivers/usb/dwc3/gadget.c

index e47cba55c431ec73acfe488b539943afb75e74eb..9d6c085c6d48354eec15e2df441e395b33598b83 100644 (file)
@@ -1084,6 +1084,7 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep, u16 cmd_param)
                 * here and stop, unmap, free and del each of the linked
                 * requests instead of what we do now.
                 */
+               dep->queued_requests--;
                dwc3_gadget_giveback(dep, req, ret);
                return ret;
        }
This page took 0.064424 seconds and 4 git commands to generate.