Message ID | 20230102084208.3951758-1-linmq006@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3FD3C4167B for <linux-arm-kernel@archiver.kernel.org>; Mon, 2 Jan 2023 08:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=M6KlY21q3tAFSr5RLJMBxCxTbe6/MJZ3xis7x8oyCNM=; b=mRSw+KHfjvVzxR wMJdWX3YhkSZN1mD5vdO6+7lq+3Jas+JmnUh+HnGpjht9/BMtJn1Fss+BCbxhMryLzutfh1q4EWOH 1Q0nSFZlOK8pJDJexYKq6w8ZeRfY4Z7qrwXmKSTeJfJ6ATflrRUIJO6ADpPRCgyHEFSpq+OdeIkOb MPlg8sG6vBtBvxAHSocL9jGr7n8yfY/CFHKdnPMK88jnTawKvSQAhl8lIYez2QdHSltyo/aWxoGo5 r9Q9CWST+xRbe3sZsXItFsFd59/ofD01S74bQ94ItirAYj+bjWvFuCxFRGuGDPR+cm3x56sJppv4R 32ei69c7axH2hWxVmr5w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCGPA-009VuW-JY; Mon, 02 Jan 2023 08:42:50 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pCGOh-009VYB-JU for linux-arm-kernel@lists.infradead.org; Mon, 02 Jan 2023 08:42:24 +0000 Received: by mail-pl1-x630.google.com with SMTP id d15so28989407pls.6 for <linux-arm-kernel@lists.infradead.org>; Mon, 02 Jan 2023 00:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=JV7mKkj4m/LbjdZ+E3y5ghBdnOoxXVhztXdDkfMjQ3Y=; b=LnOdDY/x11L2fWrc3DS8NW4NDOu1PWG9qOJCbJslNnneoe+SOcgeHhjAk/sZvYewEo jMlNouPohv6UO21l880LPap2L+oZ4UTjFlXLLPfEknP3pweaRshCLU8u2VIW+OG0Z6BW e6dEk3rYJkyB/oqut1yL41ELcuIh8OWrwzbNvKOqasT6TQnL55IiccBWvX3Nx8C/mN6I lVGCytF/KmPtFje99ltjbeW7g1XsdO17dOaOAAbd3e2K0me7ZwkmNEWtzM/BmA9OSNlG WlF4eH3Zw3YzcqGLnBEKMRqklsDH+PGl6wUC18ao+0gZ6E5D4YMY3kHA91SvOotW5yLb qBtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JV7mKkj4m/LbjdZ+E3y5ghBdnOoxXVhztXdDkfMjQ3Y=; b=iB9NJLPLsg+NL0WUd94j790urKn7ne/CpuqMwTN5DaMi5vmKWjqgqHhfqwrqBe0/1c jz+zIhazeFCvBQB5MtVt74Bq/S3etjlBZeyDyBKeN8aVbYMBAIv7RimJ8hoRkIhnKdeI vYmwb7HpDxQ3IgNwt47tdTbS1FgTYC1JuV5wO3zfQdEk7BVhJAPy8+ZsmtV+x/FlobC0 Pd+Dz7YdxdjWoJSSqagKsH7oCrv9wo2a0T1p8eJNiSG2lM0ndXAQ8q3CT/qu+G5FNjLg +loU/DpOIs0gIQzjAEStE6vDU9yTU6M05Nfg01NyjUnVAbd3WJqR+ZmDrEB6+1ODOuVs KdXA== X-Gm-Message-State: AFqh2krfCkUqWeLrW7+hU5aQDJDxOx1ZjyMLu7cMpSrTugCGGIBBMEGq qd9tYO8Pzu8bNz9XvdMSTSA= X-Google-Smtp-Source: AMrXdXtPxWUpseKD4UE0s2pK1XNqVl6yXxmY55pKjUBfq1N4kFubl+XKIzHqP9vXQXroG/v2yX7+EQ== X-Received: by 2002:a05:6a20:8f26:b0:ad:db18:6d0d with SMTP id b38-20020a056a208f2600b000addb186d0dmr62886922pzk.59.1672648937455; Mon, 02 Jan 2023 00:42:17 -0800 (PST) Received: from localhost.localdomain ([202.120.234.246]) by smtp.googlemail.com with ESMTPSA id t29-20020a63535d000000b004767bc37e03sm16609386pgl.39.2023.01.02.00.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jan 2023 00:42:16 -0800 (PST) From: Miaoqian Lin <linmq006@gmail.com> To: Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Thomas Petazzoni <thomas.petazzoni@free-electrons.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linmq006@gmail.com Subject: [PATCH] irqchip/irq-mvebu-gicp: Fix refcount leak in mvebu_gicp_probe Date: Mon, 2 Jan 2023 12:42:08 +0400 Message-Id: <20230102084208.3951758-1-linmq006@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230102_004220_404589_BBE54BAF X-CRM114-Status: GOOD ( 13.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
irqchip/irq-mvebu-gicp: Fix refcount leak in mvebu_gicp_probe
|
expand
|
diff --git a/drivers/irqchip/irq-mvebu-gicp.c b/drivers/irqchip/irq-mvebu-gicp.c index fe88a782173d..c43a345061d5 100644 --- a/drivers/irqchip/irq-mvebu-gicp.c +++ b/drivers/irqchip/irq-mvebu-gicp.c @@ -221,6 +221,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev) } parent_domain = irq_find_host(irq_parent_dn); + of_node_put(irq_parent_dn); if (!parent_domain) { dev_err(&pdev->dev, "failed to find parent IRQ domain\n"); return -ENODEV;
of_irq_find_parent() returns a node pointer with refcount incremented, We should use of_node_put() on it when not needed anymore. Add missing of_node_put() to avoid refcount leak. Fixes: a68a63cb4dfc ("irqchip/irq-mvebu-gicp: Add new driver for Marvell GICP") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> --- drivers/irqchip/irq-mvebu-gicp.c | 1 + 1 file changed, 1 insertion(+)