Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp442370iog; Mon, 13 Jun 2022 06:05:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwT/eQsPTh9HB16sL6Xwl+qL3WD+DVTKQDGfxDUqtcnf7zUVWOIeLoEm/FW7BhiOn215tKb X-Received: by 2002:a05:6402:35d1:b0:430:d38d:9c6a with SMTP id z17-20020a05640235d100b00430d38d9c6amr51421072edc.400.1655125551443; Mon, 13 Jun 2022 06:05:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655125551; cv=none; d=google.com; s=arc-20160816; b=AVoUqYhLBK6jZTf/hngfpwbuKrUoR6omXsWgp8TtOrN5SDYgxKMSgOu8n+I1UlmOe0 0Xk2LNbgDSzkJKXE/VUBOn9SnnNyCtWlrj5s/lNQMOnZMinJo0aV7AmT9iN1ASmhv0dW 6MgwGDNUJMMwwkGAXsWM63ROdP2eq9E9MnMyrVCWq3V5tk7IAk5DorJ4rJVp8PIszunW t/FPsPzbTpe/EZtB8SCRpMcRwTU3BQ9iZPBSN9nnEqV+aWXqAJ7KJ9bFZn7YrWVLFdTQ ov5NYA6i8I/glg9VqiXRIdgljrQd2ofj6SdziUjTTU4Sfia9GmmY5p+vU2AdUCuppiUn 7x5Q== 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=QeWMig7mjAwD01ub33M0aqCxI5mn/dROxQ0PJRsLJXfqujX1hS8AAkvuZUyGYVK7hM Z0Lv2WKRgSxlWGpZrNdPQUkWR3AJTD8PV/JBpUDUVPNX2oltOWoY5UXBJfYvjIhL/ee/ lcHEssqPs4Kh9sDV78H3iBlRJX0ef4UgtmjeUKAC4EyYUsXZ7wrL7eyifBBkHR+AgBzY r7FYxwJmwQjTSxpWxnujFvmb0ZVQ7H9AlfxSvNuXo7w5kdFIzHXtg0z7Ivi4h7yFcTpV PP0cM841hA9nVhV+I+4QCNJBl5pRVfxrHrPfSKE9dOTtIPNd/40iALiZHynyqB3j7XZJ sr4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="p/bP+E6S"; 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 bm20-20020a170906c05400b006ff03c95069si7305791ejb.575.2022.06.13.06.05.19; Mon, 13 Jun 2022 06:05:51 -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="p/bP+E6S"; 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 S1351504AbiFMLHs (ORCPT + 99 others); Mon, 13 Jun 2022 07:07:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349366AbiFMLAF (ORCPT ); Mon, 13 Jun 2022 07:00:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA1F3134A; Mon, 13 Jun 2022 03:33:07 -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 ams.source.kernel.org (Postfix) with ESMTPS id 8269BB80E94; Mon, 13 Jun 2022 10:33:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFAC2C34114; Mon, 13 Jun 2022 10:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655116381; bh=y5FpsC0QGeen2RQowSl2Y0D8H3xk4G0Akqg3acr5AMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p/bP+E6SFLimEfErxK+ppRPUV3/TOxfhWAztB2NRwZE9AI+VH3EMa6m4S/ffLVGY3 mB7nWuxfzZHVC0+m+PtxriVG2Srq3CpnI5mc60xMFEkayARDtwFTq6be0AJ1De0moI yPkm/jQyqfekC/7mH35eMBP7DJDkEEcDBn0ovqgY= 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.4 076/411] powerpc/powernv: fix missing of_node_put in uv_init() Date: Mon, 13 Jun 2022 12:05:49 +0200 Message-Id: <20220613094930.959380244@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@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=-8.3 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: 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