From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58822 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbdDLNL5 (ORCPT ); Wed, 12 Apr 2017 09:11:57 -0400 Date: Wed, 12 Apr 2017 15:11:47 +0200 From: Greg Kroah-Hartman To: Felipe Balbi Cc: stable@vger.kernel.org, nsekhar@ti.com, rogerq@ti.com, januszx.dziedzic@intel.com Subject: Re: [PATCH v4.4] usb: dwc3: gadget: delay unmap of bounced requests Message-ID: <20170412131147.GB24616@kroah.com> References: <20170411072815.24563-1-felipe.balbi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170411072815.24563-1-felipe.balbi@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Tue, Apr 11, 2017 at 10:28:15AM +0300, Felipe Balbi wrote: > From: Janusz Dziedzic > > 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. > > Cc: # v4.4 v4.9 > Fixes: d62145929992 ("usb: dwc3: gadget: always unmap EP0 requests") > Signed-off-by: Janusz Dziedzic > Signed-off-by: Felipe Balbi > --- > > this should apply cleanly to today's v4.4-stable. Thanks Thanks for the backport, now applied. greg k-h