]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: ep0: fix DMA starvation by assigning req->trb on ep0
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Sep 2017 07:45:12 +0000 (10:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:01 +0000 (11:56 +0200)
commit6bcb6a2f55955c2cd1398745ff7ed41368c8660b
tree35c8b6a8326b9836305002c1831060ffb4e04d91
parentf169d0276839cd81fc3a539ffdd7cad90fb112e4
usb: dwc3: ep0: fix DMA starvation by assigning req->trb on ep0

commit 55168470835688e5da5828cdcf1b1498d7baadb1 upstream.

If we don't assign a TRB to ep0 requests, we won't be able to unmap
the request later on resulting in starvation of DMA resources.

Fixes: 4a71fcb8ac5f ("usb: dwc3: gadget: only unmap requests from DMA if mapped")
Reported-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Tested-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/ep0.c