Browse Source

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>
Janusz Dziedzic 8 năm trước cách đây
mục cha
commit
8ab89da4c2
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      drivers/usb/dwc3/gadget.c

+ 1 - 0
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
 		 * here and stop, unmap, free and del each of the linked
 		 * requests instead of what we do now.
 		 * requests instead of what we do now.
 		 */
 		 */
+		dep->queued_requests--;
 		dwc3_gadget_giveback(dep, req, ret);
 		dwc3_gadget_giveback(dep, req, ret);
 		return ret;
 		return ret;
 	}
 	}