From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:55008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbeFBNUW (ORCPT ); Sat, 2 Jun 2018 09:20:22 -0400 Date: Sat, 2 Jun 2018 15:19:47 +0200 From: Greg Kroah-Hartman To: Biju Das Cc: Vinod Koul , Yoshihiro Shimoda , Simon Horman , Chris Paterson , Fabrizio Castro , stable@vger.kernel.org, Ben Hutchings Subject: Re: [PATCH ] dmaengine: usb-dmac: fix endless loop in usb_dmac_chan_terminate_all() Message-ID: <20180602131947.GG31493@kroah.com> References: <1527756504-27041-1-git-send-email-biju.das@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527756504-27041-1-git-send-email-biju.das@bp.renesas.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, May 31, 2018 at 09:48:24AM +0100, Biju Das wrote: > From: Yoshihiro Shimoda > > commit d9f5efade2cfd729138a7cafb46d01044da40f5e upstream > > This patch fixes an issue that list_for_each_entry() in > usb_dmac_chan_terminate_all() is possible to cause endless loop because > this will move own desc to the desc_freed. So, this driver should use > list_for_each_entry_safe() instead of list_for_each_entry(). > > Signed-off-by: Yoshihiro Shimoda > Signed-off-by: Vinod Koul > [biju: cherry-pick to 4.4] > Signed-off-by: Biju Das > --- > Hello Greg, > > I have observed a CPU lock condition with USB DMAC driver on koelsch platform. > This patch fixes the issue on 4.4 stable. It is reproducible with ethernet(RNDIS/ECM) > gadget configuration. Now applied, thanks. greg k-h