diff options
author | Jack Pham <jackp@codeaurora.org> | 2014-10-22 03:31:10 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-10-23 22:57:24 +0400 |
commit | 1200a82a59b6aa65758ccc92c3447b98c53cd7a2 (patch) | |
tree | 9d12eba3924c789e1b10c9ff2039ca9198f0df7c /drivers/usb/gadget/function/f_rndis.c | |
parent | 32805c350bad16e7d4debe55820d2e79dca89fb6 (diff) | |
download | linux-1200a82a59b6aa65758ccc92c3447b98c53cd7a2.tar.xz |
usb: dwc3: gadget: Properly initialize LINK TRB
On ISOC endpoints the last trb_pool entry used as a
LINK TRB is not getting zeroed out correctly due to
memset being called incorrectly and in the wrong place.
If pool allocated from DMA was not zero-initialized
to begin with this will result in the size and ctrl
values being random garbage. Call memset correctly after
assignment of the trb_link pointer.
Fixes: f6bafc6a1c ("usb: dwc3: convert TRBs into bitshifts")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_rndis.c')
0 files changed, 0 insertions, 0 deletions