Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3090913rwb; Mon, 15 Aug 2022 17:54:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR52ux82Rt8mc8ldphtTq0CfXLqqrt3EgK4SoAj122mHVu14eaGBABKXLH+VmyIG13nsuiFm X-Received: by 2002:a17:907:1361:b0:730:e5c4:6eba with SMTP id yo1-20020a170907136100b00730e5c46ebamr11903220ejb.597.1660611262776; Mon, 15 Aug 2022 17:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611262; cv=none; d=google.com; s=arc-20160816; b=pH6S5h+K3FhQmUhLFRPP9+5oRxJP3YfGyIgNoviQhROWowg1Qb/Uo1DX8s0lV1Sojg avdFClyMcldQHDUhJ46169HmB0gkb65VBD0pjarLIKEawIOoNnyy8pXiRHgjRooPngm4 JsbanFj0sbe4vZU7hpMgHMuTdXwBrvNudvs0DsvDp8Y1hHUAO7Yx2PKl255Kvho0RspW j1fESR1UcZPsKRdHpmMvZ9DFyoBmV4qu5Gj/gJZZ/Ysk45lNioOWyIk5ap9uM9JxHSyp K2Z/8LW0r41IO7fkyKm4AyN5vvikb7MzD6rqyb9D1eQNJhMweAH95ErGtgFy73horPzJ A3pw== 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=DmMgtMreK/yVru/4OhEdIB2s9mUIb2+rIUidZ/n3uow=; b=ZjVj49oFT41pkQvHCY/jbg70Oau/8JxL6L97Udtnw3EsTC4V7dvm4KmDx0KgwlB3Zj ZHsB24mkq/3KhjeCKMjHEkXGcgzh/1qvoWGUFdmVy8rot0KLhOqkZluifxyJN4+4YbBz /5380lcgeWTNoumF0fheU+zVHEuUmT8cGjoX/VqYRMJnqjWmAAxE7unaxcwKcA8JfOeI 24nYXsrfO9/z60601FfcKLLCjCV7+2oDVqfNuJUMwGqvAoJa+UKI16O+HL9GaEry+9ZD S6vVczfTt8LhMtM3KP0VpC62IQtwlUdCc3VoGnrRp9CfV0TgoCcyvnxPThnjEIDaIzis BvlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1nmSRERI; 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 g17-20020aa7c591000000b0043c0288d312si7838675edq.584.2022.08.15.17.53.57; Mon, 15 Aug 2022 17:54:22 -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=1nmSRERI; 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 S1351122AbiHOWhi (ORCPT + 99 others); Mon, 15 Aug 2022 18:37:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349590AbiHOWbD (ORCPT ); Mon, 15 Aug 2022 18:31:03 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEDAAD7D27; Mon, 15 Aug 2022 12:48:22 -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 C13FDCE12E1; Mon, 15 Aug 2022 19:48:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BB10C433D6; Mon, 15 Aug 2022 19:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592899; bh=VNrgWDWeGuoXAxyxWEQ/kH7r5U6avZqdm5orjP6BqDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1nmSRERI2XwMxbTRdU0npZzYUhkfkcSaHV+kXt64VK4S5hXmlltxCBKBnbZFnRrWa YcNevuBTJhzpRgKfk+HUH3v2tMmr5ua77r7TUUhX3xxGLz9B1CywB+mYTjPotQOCQg RkxxUFXS9GnPD62RgMURtc7+wx872s6iJy4V3zpo= 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.18 0863/1095] ASoC: qcom: Fix missing of_node_put() in asoc_qcom_lpass_cpu_platform_probe() Date: Mon, 15 Aug 2022 20:04:22 +0200 Message-Id: <20220815180505.044102979@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 e6846ad2b5fa..964eb07f46d6 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c @@ -1090,6 +1090,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