summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorJanusz Dziedzic <januszx.dziedzic@linux.intel.com>2016-11-09 11:01:31 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-11-18 13:54:14 +0200
commit8ab89da4c281873d58812db68cb42179904fc94b (patch)
tree75c77e90a1c126d3fd8167dba501601650e254e5 /drivers/usb/dwc3/gadget.c
parentced8a03cf3f00edaabfc69b740b4755897676ecd (diff)
downloadop-kernel-dev-8ab89da4c281873d58812db68cb42179904fc94b.zip
op-kernel-dev-8ab89da4c281873d58812db68cb42179904fc94b.tar.gz
usb: dwc3: decrement queued_requests
In case we will fail to STARTTRANSFER we should also decrement queued_requests. Signed-off-by: Janusz Dziedzic <januszx.dziedzic@linux.intel.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index e47cba5..9d6c085 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;
}
OpenPOWER on IntegriCloud