mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
usb: dwc3: gadget: decrement trbs_left for each sg entry
If we don't, we will overwrite valid TRBs. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
ba62c09d5c
commit
d6dc2e76a8
1 changed files with 1 additions and 1 deletions
|
|
@ -924,7 +924,7 @@ static void dwc3_prepare_one_trb_sg(struct dwc3_ep *dep,
|
|||
chain = false;
|
||||
}
|
||||
|
||||
if (!trbs_left)
|
||||
if (!trbs_left--)
|
||||
last = true;
|
||||
|
||||
if (last)
|
||||
|
|
|
|||
Loading…
Reference in a new issue