Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp938760pxb; Wed, 6 Apr 2022 04:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8l3zjs+iOrXojw7F2dPkq7mZWT1tC1idX35QJnqq1W+xPptChd7g/yYbX+gTyRyLufnyV X-Received: by 2002:a17:90a:cc0d:b0:1ca:c47f:a8f6 with SMTP id b13-20020a17090acc0d00b001cac47fa8f6mr9409893pju.1.1649245935313; Wed, 06 Apr 2022 04:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245935; cv=none; d=google.com; s=arc-20160816; b=J6swxUwp9MAHcm+A54dqsam+qwa2Hq6xg0So00XZXxMiGiKrP8Wge5/bWqVRuHO+tI 35QZqBSIPgLQtvU9m/pUzayoD/X6dlhca1dGxEYiHEUDAidXJm6VRHoeF79YGNP24qsR BwfOBda4FAbpGXPMz6XhmjgxOKZ2JVmL7qWuTUTxqxI63hUs0N7BjatiUGDx0O2WBO9m gEvOOTxb1i4zec1t3fm6Jmlv4HnlcO5OiqkBOniYe88O6D/BWl/TQ6e1cEp2G7S2ILuC o++cAWUzvQozcStzcDJW6pGczQMLEBMN2jTAhYadgB0amnAEm/RWw9zody/NgmkyzSNf YXgw== 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=iWOyi8/7VOoEMWYanDCR76eulCrb9hqH+q2kadI6JLU=; b=UsKlcUB+klZEsOhP0tGTAfmwxNl6ddmH/GO2km6m7QVbkR3D+LDL6P1jUFGR8mbKVZ eGyWOm8/6uV2rGrbuSmQYD2LhztzbFBtavnhnGwusqHIoPB2Csk1ZPjIzs/N+TqLsVBl rhFO87X2LS2MhBOfV6qwmpgv0ZM6HNVoDSRhPKnsqSbXP6tSbw0LJq2ZqffECtCTgvPE eUoKDi6cU6kZDpltLNwsJSLOHm59kjauUde+5t/lbHSecNU0hNWyYOWKcarKwSBXGga3 zx2sMQJEhER8VHDH5q6T+wP8/YkTspu7qbFy0UR0lawfSZSKEHot/Cv/K7XJlZoKrJ9E NOJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="s/GUr1FW"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x206-20020a6331d7000000b00383f97cb950si15624589pgx.383.2022.04.06.04.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:52:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="s/GUr1FW"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1254F63B397; Wed, 6 Apr 2022 03:12:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377804AbiDEV33 (ORCPT + 99 others); Tue, 5 Apr 2022 17:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348747AbiDEJsa (ORCPT ); Tue, 5 Apr 2022 05:48:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1D9434A1; Tue, 5 Apr 2022 02:34:40 -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 0764C616D2; Tue, 5 Apr 2022 09:34:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12EEEC385A2; Tue, 5 Apr 2022 09:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151279; bh=kMkP7LIZyKrZImQIvxCIdYrVte6hWmV+cZJmJGwvNjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s/GUr1FWvpxOG+4NdQvTn31KxKJ1uQJgeoJ/qmzuvx0CnVXyMoLI1CkgNUagU714z w8HjdssMVXM5EE0l+pNj8+fd0YIi+pcP7L+oeCTyH+8S0LyNPB/cQ7FJqU2IsTcNsr 0NMOp9WAL8ZLlFy1wKTZf/bUUxvosIefv0n5uiDA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Peter Ujfalusi , Mark Brown , Sasha Levin Subject: [PATCH 5.15 357/913] ASoC: SOF: Add missing of_node_put() in imx8m_probe Date: Tue, 5 Apr 2022 09:23:39 +0200 Message-Id: <20220405070350.546765111@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Miaoqian Lin [ Upstream commit 5575f7f49134c7386a684335c9007737c606d3b5 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: afb93d716533 ("ASoC: SOF: imx: Add i.MX8M HW support") Signed-off-by: Miaoqian Lin Reviewed-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20220308023325.31702-1-linmq006@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/imx/imx8m.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/sof/imx/imx8m.c b/sound/soc/sof/imx/imx8m.c index 892e1482f97f..b3d3edc36bb0 100644 --- a/sound/soc/sof/imx/imx8m.c +++ b/sound/soc/sof/imx/imx8m.c @@ -191,6 +191,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev) } ret = of_address_to_resource(res_node, 0, &res); + of_node_put(res_node); if (ret) { dev_err(&pdev->dev, "failed to get reserved region address\n"); goto exit_pdev_unregister; -- 2.34.1