]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: dwc3: gadget: delay unmap of bounced requests
authorJanusz Dziedzic <januszx.dziedzic@intel.com>
Mon, 13 Mar 2017 12:11:32 +0000 (14:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:42:09 +0000 (12:42 +0200)
commit813e1ac7259b266bc84f89dee6f9268e68255dfd
tree535b568d10d8be69e85bc56339e9b3cc361b3337
parent5e87a005ff574f9f580a8533193205331c135a74
usb: dwc3: gadget: delay unmap of bounced requests

commit de288e36fe33f7e06fa272bc8e2f85aa386d99aa upstream.

In the case of bounced ep0 requests, we must delay DMA operation until
after ->complete() otherwise we might overwrite contents of req->buf.

This caused problems with RNDIS gadget.

Signed-off-by: Janusz Dziedzic <januszx.dziedzic@intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/gadget.c