From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:54652 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753765AbdDJPVa (ORCPT ); Mon, 10 Apr 2017 11:21:30 -0400 Date: Mon, 10 Apr 2017 17:21:21 +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, v4.9] usb: dwc3: gadget: delay unmap of bounced requests Message-ID: <20170410152121.GA27662@kroah.com> References: <20170410150007.19704-1-felipe.balbi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170410150007.19704-1-felipe.balbi@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Apr 10, 2017 at 06:00:07PM +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 > --- > > cherry-picked, fixed up and compile tested This only would apply to 4.9-stable, 4.4-stable it still fails: patching file drivers/usb/dwc3/gadget.c Hunk #1 succeeded at 1193 with fuzz 2 (offset 1019 lines). Hunk #2 FAILED at 183. Hunk #3 FAILED at 195. 2 out of 3 hunks FAILED -- rejects in file drivers/usb/dwc3/gadget.c Care to send one for that tree? thanks, greg k-h