Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1338186rwj; Sun, 18 Dec 2022 06:30:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7exWsHupr/I+SmEhbNEvryEzC0ZMFY8Yc/V3lwf1C/JoI9j/26wb4W2FvBfeZZnzFLTuMs X-Received: by 2002:a05:6a20:7b1b:b0:ae:e972:72a4 with SMTP id s27-20020a056a207b1b00b000aee97272a4mr19664910pzh.36.1671373821354; Sun, 18 Dec 2022 06:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671373821; cv=none; d=google.com; s=arc-20160816; b=nw07zsmf5vmuCXrE8EHh7p0lMT4ScyUV4SW83uafi0Kbu3+0WerpSExfv7Re/qHmEu VPuO1d7esxuLatHD86s97FwGufTwZYN4EJh4TbygQUojhz3cq3ZLv6yeHWHUlJkO5ASc 5o2+MiGIPUDW9rbGxZHRqM9g8z3sL2RtQ2UMsJE7IKHsr5YG9sSscFicorEoDHwjnN0y umQAetXbyXlhNbowZtswUSLR5LBbaetTMKYxaWaAPWmxVurvNTs7iZnPViF444BenmIq 84jyj48I1ook2beJUYTDvS1v71Ao+wqxs43Nt44ctv4M5rbACVL7RJjVwPBqXV+6SQge dVxQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Gsx2ZHnCLm3X0hL8Q297OFfXb7iI8e+E4t3VsK3Hg30=; b=npKPa35470s7UP3RO2qQQI80qQlGga0srk3SPoVdf/mhEdNTRk8GS8chWMeP2EfLLU BRnLXRr/FT3XAIRh/GH4V4PqFe3filXai6cjgm8kieybhHQXM6O7c6zb2raGGtS12l6x 8Ar1auGwOhiOSTXVUgXz0trXAArqRqPU3167C56kUVUfSShnjP+0ckIm6WCM1u03VK3O KqD8y0c2Yu0Zk3S6z4WmZRX1a689FPLxwTbW9ILiFrTtPyO96JyrZZ1F8ziA3XFg+Zry MnqqwYWVV8Yr+F/Y/2oqDzJlLbEiLojss9Rs+hPRbGVnyonuwkknF4Yv/ps6xZDh210x mm8w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a170902b48c00b00189788d1dedsi7342834plr.96.2022.12.18.06.30.12; Sun, 18 Dec 2022 06:30:21 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230441AbiLRO1X (ORCPT + 70 others); Sun, 18 Dec 2022 09:27:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbiLRO1R (ORCPT ); Sun, 18 Dec 2022 09:27:17 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACDEA63CC for ; Sun, 18 Dec 2022 06:27:16 -0800 (PST) Received: from dslb-178-004-201-210.178.004.pools.vodafone-ip.de ([178.4.201.210] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1p6udF-0007F2-R8; Sun, 18 Dec 2022 15:27:13 +0100 From: Martin Kaiser To: Andre Przywara , Russell King Cc: Martin Kaiser , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: highbank: add missing of_node_put call Date: Sun, 18 Dec 2022 15:26:46 +0100 Message-Id: <20221218142647.394881-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221218142647.394881-1-martin@kaiser.cx> References: <20221218142647.394881-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 A node that is returned by of_find_compatible_node has its refcount incremented. We have to call of_node_put when the node is no longer needed. Add a missing of_node_put call in function highbank_init. Signed-off-by: Martin Kaiser --- arch/arm/mach-highbank/highbank.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index 5d4f977ac7d2..97ccb8c1b3cd 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c @@ -141,6 +141,7 @@ static void __init highbank_init(void) /* Map system registers */ np = of_find_compatible_node(NULL, NULL, "calxeda,hb-sregs"); sregs_base = of_iomap(np, 0); + of_node_put(np); WARN_ON(!sregs_base); pm_power_off = highbank_power_off; -- 2.30.2