Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2920498rwb; Mon, 15 Aug 2022 14:04:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR7lZDc0HBI3h+n/QcVjJxamezRNGccA+gpFaBXTGyT0Ed75Fr1bVrGnsJZXHTnCSJihCwh+ X-Received: by 2002:aa7:dc0d:0:b0:443:e1ca:bdb1 with SMTP id b13-20020aa7dc0d000000b00443e1cabdb1mr3579548edu.62.1660597490839; Mon, 15 Aug 2022 14:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597490; cv=none; d=google.com; s=arc-20160816; b=WRKoeKNB0Zk4oootikuStv1nRSBaCtX8gwFOnzMB4DkTEvC/f3fCTu5isLVO9immWa BKiPJmKSyhjoDKDiZMolpwXKKPa5KcVN9Z79Lg9AEj49H/6AQefKxHZ9rCi7tbYvjcRk YxRWhO9aH8vQzzjKPKH4BteYcJjOf5fvrw6fF75w46deqRdNl4sdLOqA7maKN7CumpgR OD2+E/vP+aOljizEtzbcz6rDLzjVFpmBml5g8wcquFTuXu4SI7onb4eeDMaxHdZJ1Pfq SybM8g3iEwjaTtR1d+k1WexNRrOxgADjZyB5ZUmTE1dtfmbdCAQ8uT4V8fM4yvTynued FQRw== 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=lGw8wzUM+M+6L43Gzh25desqzKT7+BoQadnAB7EQxg0=; b=ap0LW57QMLbGKOPI+PqXAA0YDMFXk7jc/xk6rcCELyDxZOEG3i5MOHc8MXk05rUyTx 1gML1fba0P/hS2XlwsVHKO6MbROmWKc/5Wh1h2Jjk3P97d+tZnrp1bMzDEdV+6LM6FyP cWoxGLioqoAP/YGsvtyqlUvHTRQHsdnA/Dt8OdulLOpUJ0MtMLhX/5j270QwM+24qq09 plTYAbSvX0V6SoUMhP3elAsZpXUOvXPRakQEsLr8EitOl/GPQXbukyxY0Fv+egG6uy2E Zrlzp5iF1DTA0RGDVJsQtSysZmBiqCYs21dgo5NXbJB6bVuSMCJ3QCnWY+qVngqOQTQ6 9+yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kTYredGd; 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 sa24-20020a1709076d1800b007318692f59csi8547491ejc.935.2022.08.15.14.04.25; Mon, 15 Aug 2022 14:04:50 -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=kTYredGd; 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 S1343974AbiHOTf6 (ORCPT + 99 others); Mon, 15 Aug 2022 15:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244443AbiHOT2q (ORCPT ); Mon, 15 Aug 2022 15:28:46 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2F1C5D0C6; Mon, 15 Aug 2022 11:43:56 -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 sin.source.kernel.org (Postfix) with ESMTPS id 5C6C1CE1273; Mon, 15 Aug 2022 18:43:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55B6BC433D6; Mon, 15 Aug 2022 18:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589033; bh=XodYGOdnVgsklnX4DOkSbhBIo4TlJdS6kPEufjU+TnU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kTYredGdHAx/wIJ7Pq37zkmB76564zN1/q7Uxm7IJM/GdvbSH/nkqSRCQb4sg8GBU mL82fAw+pPMgFEE44KyHEx+YizPr3/c8Hi4mA5eHO6NaP4ThlclGl7WXPfbD4n0lyF bmC0tOiFtfXnFI9oELVUpd7p2iAZ2+2vN3DVWBrI= 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.15 591/779] ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe() Date: Mon, 15 Aug 2022 20:03:55 +0200 Message-Id: <20220815180402.591391486@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 3bd9eb3cc688..5e89d280e355 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -880,6 +880,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