From patchwork Sun Dec 18 13:10:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 34319 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp1914396wrn; Sun, 18 Dec 2022 05:14:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OsN6LRwRhEI6m1WLuH3wFvEOHifSTLYukyVjpHpuMezoo9Mot8rMk+XoMLVWslhdhaq0y X-Received: by 2002:a05:6a20:160d:b0:a4:f2e7:479e with SMTP id l13-20020a056a20160d00b000a4f2e7479emr59577535pzj.7.1671369281836; Sun, 18 Dec 2022 05:14:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671369281; cv=none; d=google.com; s=arc-20160816; b=0MZB3ZqkAZ46M1k/P+5TqDhHupYAd0JNc8cMm20HzvDGpAp0vwxYfGpQc1pX7vjIcj PsOqKGmibX+gzdxML18UPZk+PhkPTTlhZMYfpoVphZN9W/hudp/G5YWRdlCtqcxazAry s+ofuXdIJyDbhjQxxZYGLi7Xu34l3CjEPlTSfI33eScAsCFSd+UejmOzD9l8qxz6KoQ1 ygEyr8tofCY15ouiX4gD7GQgI+9MBcTZj2hx396/yAWpMSQow4issu8PsGrEtDaaa9gQ BA+MbsVuANvwBNwbXwELZxLYjvAIV3by2X8v+da5p22XMxAuAT+W0SklUN0hiMK78Rsr s5Xw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l123-20020a633e81000000b00478a7e7a62fsi7824892pga.264.2022.12.18.05.14.29; Sun, 18 Dec 2022 05:14:41 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752557716281005188?= X-GMAIL-MSGID: =?utf-8?q?1752557716281005188?= 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;