Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1335401rwj; Sun, 18 Dec 2022 06:27:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf61FcWT7rdmyodJ3ZObQNpT7Q+51CvIB6/uPES4TTd1GUgM0zkg0PIcJiPcQGkPzqcli0pA X-Received: by 2002:a05:6a20:e68f:b0:9d:efbf:48d7 with SMTP id mz15-20020a056a20e68f00b0009defbf48d7mr47375339pzb.27.1671373631313; Sun, 18 Dec 2022 06:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671373631; cv=none; d=google.com; s=arc-20160816; b=KKxYc7Aoj6SuPVIUkb0ACu+67mX9xT9B6n+1cvZrJMfBE9I2xNDagbPIi/xwPl+7WW H4aHh5OICwXVyltB9BpPNQ0v/QR5gNwLeDgVDmdX9UkN8cNSTaQP+DNdvsf6xFU7CsQM 7rhHJIj4YYauNFVRBwWD0hnmP3tk4KLRxI69Kk5ZtcGpqmD6P9G0lUS9UajZS4vLPCjR Aor7bELqux+m32H8eX/+3MH73kRHS/bUalgW2El8gkv+DaHaPi2iFKCNqWpFj63UZHtT tWgTR0RHW/xglHc33E+vIjDmM5otrZyF+k5tOEJRFwPcG5u+RCfMtsh3yZ09nW3CwMmF d5tA== 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 :message-id:date:subject:cc:to:from; bh=3Hpe6mxwegz84ONGsPm9J3K7eNVDeYBZ7xEQi7DMVNc=; b=mNqsjkjG4SDB/GwC8v0h6DHthtTtJ5JAkvwY60vVB8ILuMrhkZ+/4C2UAmHQ6gAren MYAt5uA3aCFKkFoXEW6vyLG5MRACxlcJlnUSssXw2YohcomOIWayGXXDUAkQI8PvBNAu /bnJX8R+Z5oVO7lZ86YsTj5eTeBRfdsekNzgq4+I8z+pBj1nCgwSAPNSZkoqNwWsBkMW p6I2xCy01ViHtl/7hAD0KkEn25h03ydARzi/Q8calxD05DdOZ9ePPMil5+V/fFQlg4wL fqY1u7IMvRxOLjN3tTOKHjXUMRStPLpJ0DUxYxxY0oeUhpWq5tcHLOQ3KcBDtpjR5HoI eKmQ== 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 i64-20020a638743000000b00476e8fca283si8398267pge.725.2022.12.18.06.27.02; Sun, 18 Dec 2022 06:27:11 -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 S230191AbiLRNLT (ORCPT + 71 others); Sun, 18 Dec 2022 08:11:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiLRNLR (ORCPT ); Sun, 18 Dec 2022 08:11: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 DA98B21AF for ; Sun, 18 Dec 2022 05:11:15 -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 1p6tRa-0006i3-Gw; Sun, 18 Dec 2022 14:11:06 +0100 From: Martin Kaiser To: Tsahee Zidenberg , Antoine Tenart , Russell King Cc: Martin Kaiser , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: Alpine: add missing of_node_put call Date: Sun, 18 Dec 2022 14:10:26 +0100 Message-Id: <20221218131025.394179-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 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 alpine_cpu_pm_init. Signed-off-by: Martin Kaiser --- compile-tested only, I don't have this hardware arch/arm/mach-alpine/alpine_cpu_pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-alpine/alpine_cpu_pm.c b/arch/arm/mach-alpine/alpine_cpu_pm.c index 13ae8412e9ce..fc5b9732ccb7 100644 --- a/arch/arm/mach-alpine/alpine_cpu_pm.c +++ b/arch/arm/mach-alpine/alpine_cpu_pm.c @@ -50,6 +50,7 @@ void __init alpine_cpu_pm_init(void) np = of_find_compatible_node(NULL, NULL, "al,alpine-cpu-resume"); al_cpu_resume_regs = of_iomap(np, 0); + of_node_put(np); wakeup_supported = !IS_ERR(al_sysfabric) && al_cpu_resume_regs; -- 2.30.2