commit | 690e5c2dc29f8891fcfd30da67e0d5837c2c9df5 | [log] [tgz] |
---|---|---|
author | Thinh Nguyen <Thinh.Nguyen@synopsys.com> | Thu Sep 24 01:21:24 2020 -0700 |
committer | Felipe Balbi <balbi@kernel.org> | Fri Oct 02 09:57:44 2020 +0300 |
tree | b16618c7d6ad51e9b3227e2502df854e58d662d8 | |
parent | ca3df3468eec87f6374662f7de425bc44c3810c1 [diff] |
usb: dwc3: gadget: Reclaim extra TRBs after request completion An SG request may be partially completed (due to no available TRBs). Don't reclaim extra TRBs and clear the needs_extra_trb flag until the request is fully completed. Otherwise, the driver will reclaim the wrong TRB. Cc: stable@vger.kernel.org Fixes: 1f512119a08c ("usb: dwc3: gadget: add remaining sg entries to ring") Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>