usb: dwc3: gadget: Fix logical condition
authorTejas Joglekar <Tejas.Joglekar@synopsys.com>
Wed, 13 Nov 2019 06:15:16 +0000 (11:45 +0530)
committerFelipe Balbi <balbi@kernel.org>
Tue, 10 Dec 2019 12:52:41 +0000 (14:52 +0200)
commit8c7d4b7b3d43c54c0b8c1e4adb917a151c754196
tree84366b73e59cf81b0afdc9a5afeae6700b7ca4ad
parente42617b825f8073569da76dc4510bfa019b1c35a
usb: dwc3: gadget: Fix logical condition

This patch corrects the condition to kick the transfer without
giving back the requests when either request has remaining data
or when there are pending SGs. The && check was introduced during
spliting up the dwc3_gadget_ep_cleanup_completed_requests() function.

Fixes: f38e35dd84e2 ("usb: dwc3: gadget: split dwc3_gadget_ep_cleanup_completed_requests()")

Cc: stable@vger.kernel.org
Signed-off-by: Tejas Joglekar <joglekar@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/gadget.c