Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1860794rwb; Fri, 19 Aug 2022 10:35:36 -0700 (PDT) X-Google-Smtp-Source: AA6agR6EIMb7F7GcXnjb7ofKbVvhNr3J/Z7FEROndi1QoEFHwadZeq4HxDC1m9FGs04R+jUAKpMg X-Received: by 2002:a63:e851:0:b0:42a:3bc0:9ad1 with SMTP id a17-20020a63e851000000b0042a3bc09ad1mr3580734pgk.543.1660930535735; Fri, 19 Aug 2022 10:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930535; cv=none; d=google.com; s=arc-20160816; b=Vjp1NUw6+Z1j7+2qEFsfWNCTTlM10UGRZu6q1QVZ1ehAMCsDb7r4vHvztzrLEe7wKo VkR+BKrB/jwZ07sloBamtDp9PbpVA+cftgR71E3uHvqLY5TY20C27lXlt/7Qnz2v2yw2 Lzzxc+m3NSUSa4MXC7b5ocWfpEdjRkYmwp+VIfVJ7nXQ6ipaFXlzLAD2nmnILXaVfQC7 4IweaEENpjJG+bM2zgGEq2bZ7T3YCwC0W2jDNonvX15qHGuejIqWsgR544hPrIJnljeF 6zVRJy1HDLuqndAlP4t3ZAMZ8AkMFrAa9xzkcHmgE4/YSul5J+871cXYZLpOaDbR1fXV qxOQ== 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=nPtfhxwBE33iwxKeUrlxSKucEqMX5OxLp4KBRsmv/qE=; b=AyNeXOBxUk6RCU0C3sPmqahLiB/b/AgXk2yIFoEMNxtOSGueMhwdxfAGgBaot9i1/3 9UfVVmcNrbfg0BoKRm/F9NX887UUSwNn9mft12yoHeBd8kikHbkwEJ8Vttu4Zrvi2yAm MfGAdRo8v4VnDpeuc+Qx1NcmLLQUGPwQmKczEAb94iDLBnQc6gCLvM/t8qdK7Ij9c5Vp g0ycKJjLrpJ+5U7M594ne6GHG1RUZYQRr5DTQwX16r2B+6SDYvxHYMl/n5fSj/z3jHKD bbFEqYZrglQ1qEEF4CHmxyatS9zF6PQXJ1OhaLd6BxuSKWCcNpcd69LeLNcT/tTRnY39 squQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="2shO/PaK"; 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 b128-20020a621b86000000b005351ff87f27si237817pfb.270.2022.08.19.10.35.24; Fri, 19 Aug 2022 10:35:35 -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="2shO/PaK"; 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 S1353236AbiHSQeN (ORCPT + 99 others); Fri, 19 Aug 2022 12:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353218AbiHSQbG (ORCPT ); Fri, 19 Aug 2022 12:31:06 -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 20A1311D51F; Fri, 19 Aug 2022 09:05:13 -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 F2A996177D; Fri, 19 Aug 2022 16:05:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06484C433C1; Fri, 19 Aug 2022 16:05:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660925109; bh=0LRa2qW6GKXsFvHpfCpJ6RmeVaMfVKEE0QrVISvZ+qo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2shO/PaKC6MCx39owtaV6w9+DQUR77JpfN1oj6JCrh7WYJX3+Ay7jIhWjj5fzBsI6 UCejbJsJSfbV5romun8oyrRVLbzfqvC+7s03F/nJU/riwy7jyH+Iwyqio9g8ksuevG 2qFYIyD6KYAoslpJshR5oMuVRil1jKoIEfLCXwM4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Mark Brown , Sasha Levin , Miaoqian Lin Subject: [PATCH 5.10 387/545] ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe() Date: Fri, 19 Aug 2022 17:42:37 +0200 Message-Id: <20220819153846.722891413@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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.1 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,T_SCC_BODY_TEXT_LINE 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: Liang He [ Upstream commit f507c0c67dac57d2bcd5dcae4b6139b0305d8957 ] We should call of_node_put() for the reference 'dsp_of_node' returned by of_parse_phandle() which will increase the refcount. Fixes: 9bae4880acee ("ASoC: qcom: move ipq806x specific bits out of lpass driver.") Co-authored-by: Miaoqian Lin Signed-off-by: Liang He Link: https://lore.kernel.org/r/20220702020109.263980-1-windhl@126.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/qcom/lpass-cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index e620a62ef534..03abb3d719d0 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -846,6 +846,7 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev) dsp_of_node = of_parse_phandle(pdev->dev.of_node, "qcom,adsp", 0); if (dsp_of_node) { dev_err(dev, "DSP exists and holds audio resources\n"); + of_node_put(dsp_of_node); return -EBUSY; } -- 2.35.1