Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2190564iof; Tue, 7 Jun 2022 22:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJov9FC5XNpiaZ/+UX7JFv0YQ5EmY21bbBqZw//ttSRC2IDj+E/sWV2ZJkZuRWK2+jB8B+ X-Received: by 2002:a17:90b:48cf:b0:1e8:9438:ce13 with SMTP id li15-20020a17090b48cf00b001e89438ce13mr11178638pjb.235.1654666866030; Tue, 07 Jun 2022 22:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654666866; cv=none; d=google.com; s=arc-20160816; b=A/Ol6+lc/6QywY9C4Dl7IG4fzQzj7NtFWVNX/WaoLzqLQbroVp+n3IBuRQZaeIg7Ys 8dw+i1tNtHSBpiuz4bcG3+sVvtAOlAOBwFuhU9sa3SHe7mqdxeAzlUftxoxHfDqFH5Gh 3uqMr9QWHlDqgJbp5UkFQMYX+gUuyDJbXfIF45e96daljDhXWl0zCS3I6h2Dfz5he/c8 gQNdhN55E6F8OO7Tm3ABqiLaQIKlTk0v3mnifRl1jpvvadtNyw9LnkYs9fiEqDCh4pzh 9GQx6h1O3y/pKwU2fzyEHBKLZ01vnZ+T2A6VrZ+V4IKAsm68ktxU9k+yrftxrDDYU0pR sDgA== 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=GrkbMgzbfnnVgyEuDJR4hLKx6cKB9dx+hF2aJRNclqawUPDwK/N1TktPB9S7JEkfNt gOU1gY+a4TQlrgo7lNEYwZOWPy0o+WxLiJgW040J/2s35IKe7IIEm1JjAxDrkWFx33g5 Y9gz4n/+5u5y+dJsY0/1vBxhs60QbhW8zbgEfzESyspxZf2FhCQoJfWB9n9HOolXUVjA +2mBdZW+PcXHvl1FRCLvgOSs44qdVCAAU6Joy/ifIWcGosgomFh2kYQMJ3RoJvY3z5Uk XloYh2y9aPlMWbp6NBwKEb4Se850z2m+hp3c8UUgGH7HhYjA1AdstPnnwEBhdmxxleB+ /J9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=whfTPRb4; 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 fz21-20020a17090b025500b001e08e7586easi25211349pjb.0.2022.06.07.22.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:41:06 -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=whfTPRb4; 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 F0653307A89; Tue, 7 Jun 2022 22:07:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347607AbiFGRju (ORCPT + 99 others); Tue, 7 Jun 2022 13:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346954AbiFGR3y (ORCPT ); Tue, 7 Jun 2022 13:29:54 -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 D91172DAAD; Tue, 7 Jun 2022 10:25:14 -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 7317A60DE1; Tue, 7 Jun 2022 17:25:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B03EC34115; Tue, 7 Jun 2022 17:25:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622713; bh=y5FpsC0QGeen2RQowSl2Y0D8H3xk4G0Akqg3acr5AMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=whfTPRb415jUkmILFvqE3KlA/fMFayD9CWFZkWgcOkd0inFfbIqY47G80/skTPSXt oqo7DjndeaJftQX+TkS9mUyJANpkIgRCAsaMt1b52l23VbEWpBfjGtTs4yyPG+EXfS Lfn/og8SR1G5bTQZ11Sz9QdoUWm13BfEsgFy+2HQ= 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.10 116/452] powerpc/powernv: fix missing of_node_put in uv_init() Date: Tue, 7 Jun 2022 18:59:33 +0200 Message-Id: <20220607164912.014298804@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@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