Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2125257iof; Tue, 7 Jun 2022 20:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl+bYwuAXomwOI2cZon27SK9N4U9JqnhGDt8W2npnFfHwir1Bfc+JhI6cfQy0YTprjYsJ7 X-Received: by 2002:a17:902:7582:b0:162:1131:23c2 with SMTP id j2-20020a170902758200b00162113123c2mr32367812pll.83.1654659263254; Tue, 07 Jun 2022 20:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659263; cv=none; d=google.com; s=arc-20160816; b=Vc5ACS0U0uxBgdTIj8Q+3EeYdIGocBDAOJXs8A7/kQ+WJE28FFa+0NIONZdpEViN4G jypso0hBQExfptMJmqAQU1YR2q82tJlWhwu/HNHhllq41XeXAZWbt+JNMQXK7QvzemI4 +6n1lxlbMv/Zb6dHeSUeexqzF/TH19WK2FuJx17v0qEn5PdDzYxEtl05bWMuS26X8/nP FKpLKDOzUd3Np0OaNmS+2p41/Ft4QDmt1s1VXseWLeBqI18E1a9e7GFGrf09FLahPnhW A9RDtXpULuFeQGuMslBCoqW8sfI8YUgzklyWMviyN7SIZG0wrllybmMM9sJnNwI/cK7N U4tQ== 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=zWmAWaTkZ6p/EC05kaWtW6V5639c1ieEchLaP+z3HbM=; b=u0xIhkN8odNc5j3lDU3F7Zzr1zh1KJuJzSXYs6rYOBC8MsSb0h1Yh/tjVe4Emls3MM yDzVcOzOANt7hbkpudF18spnrMOwB+BALB0s6y7wSYzI+zP9/tV98s7dS03EwfMGMotD ePxv0HHy9bzZrFura3ABtKnUv4n1adoacFWPwxwgApNLMgIBGaNo3v7Jjp9nKzzrbpCr yMmNUWMH5saNxeSbiQ21FIIhvawz1IZXsus6uqW34KYpUTWi3UEQjd9UDn1E0hNkxXub JMgOyEtPhMRPQU2AfaRZbfVoftVqZ4jO/4TQenFHc/xGUpVlKw61J2CeeExI0c0aEHsY yEJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="mS//OFsq"; 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 q2-20020a056a00088200b0050ab6783001si30742566pfj.152.2022.06.07.20.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:34:23 -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="mS//OFsq"; 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2906016F375; Tue, 7 Jun 2022 19:42:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385187AbiFGW0d (ORCPT + 99 others); Tue, 7 Jun 2022 18:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381274AbiFGVRc (ORCPT ); Tue, 7 Jun 2022 17:17:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 066C9222341; Tue, 7 Jun 2022 11:58: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 1641D61787; Tue, 7 Jun 2022 18:58:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F86CC385A2; Tue, 7 Jun 2022 18:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628319; bh=y5FpsC0QGeen2RQowSl2Y0D8H3xk4G0Akqg3acr5AMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mS//OFsqV9x5h/aHKs2099p4bTMlfp5jsxZlerGUbvcefB0A6XvfReiVbbPdUhiNw 0tWmYrVXuBJ0GW/+BtjO20mFNHyPMmqSLSPhoGmDTki8WLpdiKG4qL4FlNq3GTWJC8 rL+Q+WPrVofq/gOqopgXWX2/cYe+w3MQ7Rko1Wjw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zeal Robot , Lv Ruyi , Michael Ellerman , Sasha Levin Subject: [PATCH 5.18 245/879] powerpc/powernv: fix missing of_node_put in uv_init() Date: Tue, 7 Jun 2022 18:56:03 +0200 Message-Id: <20220607165009.964228978@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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=-3.1 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=unavailable 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: Lv Ruyi [ Upstream commit 3ffa9fd471f57f365bc54fc87824c530422f64a5 ] of_find_compatible_node() returns node pointer with refcount incremented, use of_node_put() on it when done. Reported-by: Zeal Robot Signed-off-by: Lv Ruyi Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220407090043.2491854-1-lv.ruyi@zte.com.cn Signed-off-by: Sasha Levin --- arch/powerpc/platforms/powernv/ultravisor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powernv/ultravisor.c b/arch/powerpc/platforms/powernv/ultravisor.c index e4a00ad06f9d..67c8c4b2d8b1 100644 --- a/arch/powerpc/platforms/powernv/ultravisor.c +++ b/arch/powerpc/platforms/powernv/ultravisor.c @@ -55,6 +55,7 @@ static int __init uv_init(void) return -ENODEV; uv_memcons = memcons_init(node, "memcons"); + of_node_put(node); if (!uv_memcons) return -ENOENT; -- 2.35.1