Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp868244rwi; Wed, 19 Oct 2022 04:06:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ixWnJGsR9a4KD0ifNHTHsZ60VG4sLTYYpt10nReiTmPFx/53dhFnenhvJ+l0is3N1q35Q X-Received: by 2002:aa7:c60a:0:b0:458:d707:117 with SMTP id h10-20020aa7c60a000000b00458d7070117mr6955465edq.258.1666177592207; Wed, 19 Oct 2022 04:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177592; cv=none; d=google.com; s=arc-20160816; b=DZ8MRPmce6ZY+tHhS0OeSsIhN+ENvVJjbYo9j3XlJstdYHuCus+K+9j0wbBAJSC4vw WnbuvxO61nbd1gygxTipidkCbL9wjPeeDYuxQWK1uNwYIgIXkXg7bw+sg1WwzD4zJDxg rFPwOhHl6Goe1Yy23mP4kYRajk6gLvA5vEzhsVluQb1zFZRPI4x7Xh1sf+dV5vu0zMk6 xTKrlNWOnEWhPqUujK67YUvdyH3gNoNLMABEtfgWnU+EUugxWQKFVkh25whitseAP3Oe lDCTngXuFmlQ5QTWPLeoBkmxaC7iHE+8rJEEOA5LUKzHzP/889Ff4TZkOlQbVdEKx/iP KrZQ== 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=BYRw71lY6vxY43SteU4dottjLlfRwn/LiKS4hp9BceE=; b=GbKWYWirFE6LGYM4xP0frMYVCnoOPLHVA/hnWxtykyHJxoN6V6fJ4SiAZg/3/uIOP2 CfJFsLcirR18Ga3NgTdPGEfgBzeIX5iZqQfBi8yqivroUa75XmPMYb6yDC7ZuZU6lbkX 4c89uubREGRa84ZtYlrH7aeP6kG+MdAT1fvFMvvI0Srf+w+rEXWvnP+l/68WvhO+1nvi URPt5Rurn85g4HN8cInCibSCWf0eeoMEE4JEHaycgnDVE6liwXCvNp7qaYLfyvP5Aq5i 2ZAIqK9KzGyYfE9ParNx51J+Cr3sbjTiJhGQ4DCPRpHCzWAvLO11Z6y1pgdyUjcH5Sl7 Dxxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H0wvTzq7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020aa7cad4000000b0045bc92ef2c0si12266456edt.195.2022.10.19.04.05.34; Wed, 19 Oct 2022 04:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H0wvTzq7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234048AbiJSJec (ORCPT + 99 others); Wed, 19 Oct 2022 05:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233801AbiJSJ33 (ORCPT ); Wed, 19 Oct 2022 05:29:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65768C4C11; Wed, 19 Oct 2022 02:13:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 83E61617F2; Wed, 19 Oct 2022 08:54:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D19C433C1; Wed, 19 Oct 2022 08:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169664; bh=KNL1dvvDRYUp9Wdt2G9l0gi4OT7xq1EdMYgKn6rVOhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H0wvTzq7pEPpNq8/JSGf8SNePjkxAKe7VTE76nkLgARyQXGJ9LwtMpZ9Mikm0XXT7 IxfDN/xtz7/NiTeLVjSxZemz6kdCZ2yPaLu3FQ3dk3BRV8+KJY4lXj77UFbuDLvle8 37lHOutaGZ9cLWsEGoO46GWN0gLsTA1fIvhpg6AU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Yingliang , Mark Brown , Sasha Levin Subject: [PATCH 6.0 361/862] ASoC: amd: acp: add missing platform_device_unregister() in acp_pci_probe() Date: Wed, 19 Oct 2022 10:27:28 +0200 Message-Id: <20221019083305.944183870@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang [ Upstream commit 6a4ce20fd776d2fd19ffaf85cf34a53761e2c888 ] Add missing platform_device_unregister() in error path in acp_pci_probe(). Fixes: c49f5e74a11e ("ASoC: amd: acp: Add error handling cases") Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20220819073758.1273160-1-yangyingliang@huawei.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/amd/acp/acp-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/amd/acp/acp-pci.c b/sound/soc/amd/acp/acp-pci.c index 2c8e960cc9a6..5bb23ebe1216 100644 --- a/sound/soc/amd/acp/acp-pci.c +++ b/sound/soc/amd/acp/acp-pci.c @@ -104,6 +104,7 @@ static int acp_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id addr = pci_resource_start(pci, 0); chip->base = devm_ioremap(&pci->dev, addr, pci_resource_len(pci, 0)); if (!chip->base) { + platform_device_unregister(dmic_dev); ret = -ENOMEM; goto release_regions; } -- 2.35.1