From: Jack Pham Date: Tue, 21 Oct 2014 23:31:10 +0000 (-0700) Subject: usb: dwc3: gadget: Properly initialize LINK TRB X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~17^2~2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1200a82a59b6aa65758ccc92c3447b98c53cd7a2;p=pandora-kernel.git 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: # v3.4+ Signed-off-by: Jack Pham Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed