Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9175077pxu; Mon, 28 Dec 2020 08:26:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3q6bllaYTMMmzf6L/Lgve9/BnCrSIgQCfJuIlgU4WWQXxc6x/GCIR59tteCx2pjLzOcqd X-Received: by 2002:a17:906:31cb:: with SMTP id f11mr3053082ejf.468.1609172795464; Mon, 28 Dec 2020 08:26:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172795; cv=none; d=google.com; s=arc-20160816; b=EauNDAVHcoXjydxdROVyDn7kAL3o/n+3AoUKAufLaXstVOcTvjOz4j7q8qyxm4lwwR iSBHvO7WXO/1/2/Hv1yKi4Mgr37szCPi0l8Feuqic6bxYR7K46ZHDhIalCMQdVYB/Bkv HG6JAW81PraVpPhoa8zFh/Yu9EdtPTcPMnGL8MjrrWuX2zOH/rTKvnaYXxFEBR7WHocA hbBNjjwVhSi7S5442zjBixQw/e8qA7It9ghG3Cq3ARMbruP3h2NVbuWyx4KbTJyE0qJ1 zmV8dtq5NgcuInDIX4VdKJmXwilH8uoKXQegHzwdOASJmixh7Tw2XyDgLTJDktbWFWZr OGnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WKq/cd4hBcD0rHTc8A/KW89yG+PuzAt+JjvXM+j5YNA=; b=xG8DkwGSPK8NL/YqxbDZAD5RM974SsatlXvSkgpCDzFMSUCjwDflCUVmVPSTanzwvK ygzn4jIMh5y+yMinM9hWRirQtE+gEoQjveCtti1sYI2SuEcrTEzgC4RkxJjFRLT4TOSi 9XPJ4j+Xzipd1mPf1kXqB0kcV/UAm7bemu7YWChv7T4RELcIgLSkx2sFL9t+4ff+9qvs KTX3KwWqClU1nX5guJ8mJyOVXuz2wSn0sb5UhVLEj3ElxOO/TBkf/JLqkjaaLeG1vE/d Cr/+aBguwWhQL8dlWTRmypk6XkWFyjWhuO9alakXIWAMtZK7VKPgOPAmIYv6U9E91swE zEhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UyN6BzAJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb16si18252573ejb.392.2020.12.28.08.26.12; Mon, 28 Dec 2020 08:26:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UyN6BzAJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731937AbgL1NMB (ORCPT + 99 others); Mon, 28 Dec 2020 08:12:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:38274 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731701AbgL1NLT (ORCPT ); Mon, 28 Dec 2020 08:11:19 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id EA56F2076D; Mon, 28 Dec 2020 13:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161064; bh=FEmEKYfImGIDHIpcOTTgbpAx49E4hAepF0mdHwCE8gM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UyN6BzAJRwuOk3Sc+nmlazl0Pwu6fyTV5cTDvQ92Mh8xSt3/lDZP4DR4U3J/lVmS1 hRGaxFKxpczmNgAWFxr8D0w1FPoitIRrztokgsQ+vz71h1b+XwW0RcTTdwTgYI4PFW rH5xADBC97JGnjP0ZX2EnQ3jkBOBauxhHBeXgJAI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Fitzgerald , Zhang Qilong , Mark Brown , Sasha Levin Subject: [PATCH 4.14 089/242] ASoC: arizona: Fix a wrong free in wm8997_probe Date: Mon, 28 Dec 2020 13:48:14 +0100 Message-Id: <20201228124909.079502004@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Qilong [ Upstream commit 5e7aace13df24ff72511f29c14ebbfe638ef733c ] In the normal path, we should not free the arizona, we should return immediately. It will be free when call remove operation. Fixes: 31833ead95c2c ("ASoC: arizona: Move request of speaker IRQs into bus probe") Reported-by: Richard Fitzgerald Signed-off-by: Zhang Qilong Acked-by: Richard Fitzgerald Link: https://lore.kernel.org/r/20201111130923.220186-2-zhangqilong3@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wm8997.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c index 49401a8aae64a..19c963801e264 100644 --- a/sound/soc/codecs/wm8997.c +++ b/sound/soc/codecs/wm8997.c @@ -1179,6 +1179,8 @@ static int wm8997_probe(struct platform_device *pdev) goto err_spk_irqs; } + return ret; + err_spk_irqs: arizona_free_spk_irqs(arizona); -- 2.27.0