UPSTREAM: usb: dwc3: gadget: decrement trbs_left for each sg entry
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 30 May 2016 10:42:33 +0000 (13:42 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commit0d92fc598c00df40d94a3cd24730e9b633a6e745
tree8f64c721e9b6096154b3539edc9ee9b973035c0e
parent796b829ebb9421c85c01878ea040055d76b7bbd0
UPSTREAM: usb: dwc3: gadget: decrement trbs_left for each sg entry

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