From: Janusz Dziedzic Date: Wed, 9 Nov 2016 10:01:31 +0000 (+0100) Subject: usb: dwc3: decrement queued_requests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ab89da4c281873d58812db68cb42179904fc94b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb: dwc3: decrement queued_requests In case we will fail to STARTTRANSFER we should also decrement queued_requests. Signed-off-by: Janusz Dziedzic Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index e47cba55c431..9d6c085c6d48 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -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; }