]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: gadget: Properly initialize LINK TRB
authorJack Pham <jackp@codeaurora.org>
Tue, 21 Oct 2014 23:31:10 +0000 (16:31 -0700)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:48 +0000 (19:02 +0100)
commit37529c7250788fde7107b6ad11ec779aa53b8711
tree420fffef7e88426ae5c0f827e577858d7e936c79
parent28af2ea590152b183494a6b05d5c04fb3374d10a
usb: dwc3: gadget: Properly initialize LINK TRB

commit 1200a82a59b6aa65758ccc92c3447b98c53cd7a2 upstream.

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")
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/dwc3/gadget.c