projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796b829
)
UPSTREAM: 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
Huang, Tao
<huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000
(20:48 +0800)
If we don't, we will overwrite valid TRBs.
Change-Id: I8076fa857b9ae016617d58836de3d9dcf5be9e4c
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit
d6dc2e76a860d6be0129daae43e5f12461531d20
)
drivers/usb/dwc3/gadget.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/gadget.c
b/drivers/usb/dwc3/gadget.c
index 178cf6581cfeeac5b49310f930d87c12fe89ebbe..5a4d7d85563943590849685bed69795d46c8ed9a 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)