Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp836332rdb; Sat, 7 Oct 2023 00:57:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpfpJBTgD/g1J2h0tu9uSox1NYkHr78gSNNi72wUvE3hmcucWeW+aUp0Roan0hldNPooS8 X-Received: by 2002:a17:902:cec4:b0:1bb:ce4a:5893 with SMTP id d4-20020a170902cec400b001bbce4a5893mr12839806plg.30.1696665437605; Sat, 07 Oct 2023 00:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696665437; cv=none; d=google.com; s=arc-20160816; b=xN4CrLAxpE6J5iH27oJc/yStU7fQpPHJj4yJV7UIQnY1AywRtFtf8I428G9kYC0mFr Ct6swKPEVvyJUFvZ15zSE9ATAd2gHhuntlIKqp/96FaJV4HKH45z0aVrPt5q5Fq6oy6r DVcHHnkNA5QLOiE3yD1/Dn6bjz4GeKC4G8k+9l5p25KgYYGnUyPSOyM9pOfHzM27o7TI Ybcu3PoiYrm7jo0cMAolRDeE3ODrLMuW/jvJ18Dm9xjl7ycKzwZkbwgukJT4mI8BhzhA 89XO3N4MCYCpr2s76w7YYZPrZGvOW12fnXpEnXtxKJyqwclgGwSbCCt7DkkyqHd1OSIo gNaw== 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:dkim-signature; bh=x2ubbSHf4h71EdcfZci9RUDCMhjc8OXOUwYHNzSoY6Q=; fh=gAG0qQ6nLxKeJcjxGZT8w1DVGCPfFZ16Jav7mVT8cig=; b=v4nDgJpQv8Q2j9nBw5dciUtEl59HQLGLWR2T1OLiILb/rcG8/eZfKTGCyWIalY256+ qOMCnKxCZNdYxR9FfX1QagHJUe1uGa4peKNjS1hbbm5gelpkDQCZhFvTeN8KL4sVY0eZ gUt1Na7bwiChdYpbvlyoAB1HqR3FZsBLSXRqOQ7PptEcoSB/oXSJIBYFhLkue9ns5nyJ kYdlyU1MYxF/FsA+WPG9BU0svGSQd1YooHVrhiHSL9zDMJpRMS+uqgVgwzQtTOwbwCZy zrpt/VlhNNNMKAagQQx6N9URRIktbt6ofMbhLvyK3e6uzOBUxXTtT7gScHMkJSgBSUDx KNSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=H+XLaN0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j10-20020a170902da8a00b001b8ba81d04dsi5814519plx.395.2023.10.07.00.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:57:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=H+XLaN0p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 120CA8065CA2; Sat, 7 Oct 2023 00:55:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343774AbjJGHzP (ORCPT + 99 others); Sat, 7 Oct 2023 03:55:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343572AbjJGHzL (ORCPT ); Sat, 7 Oct 2023 03:55:11 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37D40C2 for ; Sat, 7 Oct 2023 00:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=x2ubb SHf4h71EdcfZci9RUDCMhjc8OXOUwYHNzSoY6Q=; b=H+XLaN0p9rpVzkesPKMb5 6z4+k09YuiKq4qkndyJZ+O6sxaY30al422d4w6HCfEaFe20IF6E+21SxI/GtOMwX DXrzT+wZV+vzzzh8YUEDktlDiP8lVeIVXZf8Jxd1P7GY+5nEzb/kT7vtS6y48Zzp kykLlbg/dvK0IOi0YUqkbs= Received: from icess-ProLiant-DL380-Gen10.. (unknown [183.174.60.14]) by zwqz-smtp-mta-g5-0 (Coremail) with SMTP id _____wBnQ2W5DiFlDjo+EA--.50968S4; Sat, 07 Oct 2023 15:54:41 +0800 (CST) From: Ma Ke To: tglx@linutronix.de, maz@kernel.org Cc: linux-kernel@vger.kernel.org, Ma Ke Subject: [PATCH] irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init Date: Sat, 7 Oct 2023 15:54:32 +0800 Message-Id: <20231007075432.4002092-1-make_ruc2021@163.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wBnQ2W5DiFlDjo+EA--.50968S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7XryDZryftFW5AFyfAr15XFb_yoWxZFc_WF yUWFn7JF40kr4rGw12vr43uryqvr1kWF1kWF48tFyfZ340v34xGF12gFn5Aa48uFsavF92 kF4Dur1Syr17ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRN89NJUUUUU== X-Originating-IP: [183.174.60.14] X-CM-SenderInfo: 5pdnvshuxfjiisr6il2tof0z/xtbBFRMCC2B9oZ0BegAAsV X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:55:46 -0700 (PDT) X-Spam-Level: ** Add the missing of_node_put() to release the refcount incremented by of_find_matching_node(). Signed-off-by: Ma Ke --- drivers/irqchip/irq-gic-v2m.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c index f2ff4387870d..d3e54c557b4c 100644 --- a/drivers/irqchip/irq-gic-v2m.c +++ b/drivers/irqchip/irq-gic-v2m.c @@ -427,6 +427,7 @@ static int __init gicv2m_of_init(struct fwnode_handle *parent_handle, ret = of_address_to_resource(child, 0, &res); if (ret) { pr_err("Failed to allocate v2m resource.\n"); + of_node_put(child); break; } -- 2.37.2