projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba62c09
)
usb: dwc3: gadget: decrement trbs_left for each sg entry
author
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 30 May 2016 10:42:33 +0000
(13:42 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:51 +0000
(12:32 +0300)
If we don't, we will overwrite valid TRBs.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index
3d2978c
..
d2884a4
100644
(file)
--- a/
drivers/usb/dwc3/gadget.c
+++ b/
drivers/usb/dwc3/gadget.c
@@
-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)