Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6733520yba; Wed, 1 May 2019 19:19:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/cDAQRBe8ISiw84gwWTO4zZWedCOqcWrcowZwtPKbC9j0IlhRVdRfJLEoZd83mmlztscW X-Received: by 2002:a17:902:da4:: with SMTP id 33mr960456plv.20.1556763574493; Wed, 01 May 2019 19:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556763574; cv=none; d=google.com; s=arc-20160816; b=e/Y0ZH22aeI9Z5qGxOLRCmi12QGPNjrhnZ4Dz2mp8N6C7naJKHeQUDQp4aBGfSMPJf 9hB/MZuf8NYc3mLAP2s6AFS5099ZJ5HYzuS0KaqpMtQuW/Mu6ZfTSQCMKAKrD4/Z17+C pNTk/UDWUXNJQLVOOk7uYbXwmiu9y67hZNsHQ4brC+5LiSDeTvRcCPAkQ1aFWuZG9FZD UsOiTsZC52rXI2qIk2nsqINaXzKcQaapQLztcVeQFHYgI7NW8Xa0oP4Z6ZqtJZZUzeLt wkIXgHrSSH3GH85/szx1+4DmgAX8StvQKm3mTTASNiWbK8iETjBDvlaFsCBNTT2OsRzC 67pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=qPjR5TzRDbnAqxV3DwfYDMNhhBwZAe2KIxcyy2P9zos=; b=Q4e5mgMIHNQdGYc84CpJbbvVhLNbjGpTiWHsf6Pld1Nsl7rYQVB0I2ZdMa5LRaHhTD YMw9um5BqpnfENWC+3dVFvXVfNM5SOo4SkZkibd74MnXt7YFC2VRYKG5fWWF7cdJCR/m y+gqoELu8CClvvLGxkawNtw6m0T1Sp6UJsRyMvXDYL0VSM9DO6TdI1TJpqYOidKZXhCu 5+0kzgB8AcACz5Twje2w0JPedJ/fTvZSdjcElqjFmHJbTR8yequ5/3VpcGRrmr3ixmq8 No2LhcwVYKPfl+5PMDKG/SIWlDQDXJIDsRLf9rhjvJmHOuyNE6ZkutuCzntAygTgyJQu alBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=h10UDky+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k136si17904177pgc.184.2019.05.01.19.19.16; Wed, 01 May 2019 19:19:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=h10UDky+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726378AbfEBCST (ORCPT + 99 others); Wed, 1 May 2019 22:18:19 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:54858 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbfEBCSS (ORCPT ); Wed, 1 May 2019 22:18:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=qPjR5TzRDbnAqxV3DwfYDMNhhBwZAe2KIxcyy2P9zos=; b=h10UDky+3huF btSF4G/2IKX2b6vivJBPW/IGONFd3A3bVh0bZ/vrZHQWUs0DuB+dp7Pg3IovUUy5dbvhXvvqcDFdg YvWf+WOdz29/LdR2ZxTvxxY9fovVeYIUzc2vfGqVu3jxivs/sSwjSnfksyMeeyAcaqSzUuLvnCf/S HNOiI=; Received: from [211.55.52.15] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hM1IT-0005pn-MY; Thu, 02 May 2019 02:18:06 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 767DF441D3F; Thu, 2 May 2019 03:18:02 +0100 (BST) From: Mark Brown To: Wei Yongjun Cc: alsa-devel@alsa-project.org, Baolin Wang , Chunyan Zhang , Jaroslav Kysela , kernel-janitors@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Orson Zhai , Takashi Iwai Subject: Applied "ASoC: sprd: Fix to use list_for_each_entry_safe() when delete items" to the asoc tree In-Reply-To: <20190429123713.64280-1-weiyongjun1@huawei.com> X-Patchwork-Hint: ignore Message-Id: <20190502021802.767DF441D3F@finisterre.ee.mobilebroadband> Date: Thu, 2 May 2019 03:18:02 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: sprd: Fix to use list_for_each_entry_safe() when delete items has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 81a812c98b6eda7e3101305d57354433e3edc541 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Mon, 29 Apr 2019 12:37:13 +0000 Subject: [PATCH] ASoC: sprd: Fix to use list_for_each_entry_safe() when delete items Since we will remove items off the list using list_del() we need to use a safe version of the list_for_each_entry() macro aptly named list_for_each_entry_safe(). Fixes: d7bff893e04f ("ASoC: sprd: Add Spreadtrum multi-channel data transfer support") Signed-off-by: Wei Yongjun Reviewed-by: Baolin Wang Signed-off-by: Mark Brown --- sound/soc/sprd/sprd-mcdt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/sprd/sprd-mcdt.c b/sound/soc/sprd/sprd-mcdt.c index e9318d7a4810..7448015a4935 100644 --- a/sound/soc/sprd/sprd-mcdt.c +++ b/sound/soc/sprd/sprd-mcdt.c @@ -978,12 +978,12 @@ static int sprd_mcdt_probe(struct platform_device *pdev) static int sprd_mcdt_remove(struct platform_device *pdev) { - struct sprd_mcdt_chan *temp; + struct sprd_mcdt_chan *chan, *temp; mutex_lock(&sprd_mcdt_list_mutex); - list_for_each_entry(temp, &sprd_mcdt_chan_list, list) - list_del(&temp->list); + list_for_each_entry_safe(chan, temp, &sprd_mcdt_chan_list, list) + list_del(&chan->list); mutex_unlock(&sprd_mcdt_list_mutex); -- 2.20.1