From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F4BDC433FE for ; Fri, 10 Dec 2021 13:26:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241799AbhLJNaB (ORCPT ); Fri, 10 Dec 2021 08:30:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235516AbhLJNaA (ORCPT ); Fri, 10 Dec 2021 08:30:00 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2499C0617A1 for ; Fri, 10 Dec 2021 05:26:25 -0800 (PST) Date: Fri, 10 Dec 2021 13:26:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1639142783; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kcxl4RIkW/vo9JKrgkENoh4O9C13QIYXVGjh31yTZ2E=; b=fjiPs0NtSvY0DSdXltOa2Oi+GUVMgPf1O81DqPMuVvqqx6sg2ubQ6fjN3p5ZUNX0KoB5Hc V1wLCa6i3NxY0C8kVyJKbfah1P+ccV+bZPKVuUjIifcleTTKX7lNNV+V2oUu+QFjNl06VY 2xJ+0keWe+aSuCuqrFgddCjAqz+YGMWlBwIgaq93xf9Lzl7KYHXsiIcWo5gkR/nc3S5gL/ LpXrO8AmJQId6MbqcAq0XMJkbEDHz4F2Lj1FyIt+ADJ8puhlVBMToZ0TUcoQDoM6yCNyQK etiCWK8Qh1yvUdmA4yOVyMHeJrLslW8i6RG0Fr2uz7Fq6LMg+9CxaUUTH9JfqA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1639142783; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kcxl4RIkW/vo9JKrgkENoh4O9C13QIYXVGjh31yTZ2E=; b=HLzHGIsVlUa9hBBX/dbueJTrpWL/F0GkBVeBHDja0zjxYB15c1neTmItJ82fdhdQMXfMEk +NU/GsH58C0/FfAw== From: "irqchip-bot for Ye Guojin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-fixes] irqchip/irq-bcm7120-l2: Add put_device() after of_find_device_by_node() Cc: Zeal Robot , Ye Guojin , Florian Fainelli , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20211109055958.130287-1-ye.guojin@zte.com.cn> References: <20211109055958.130287-1-ye.guojin@zte.com.cn> MIME-Version: 1.0 Message-ID: <163914278213.23020.634415261822719928.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-fixes branch of irqchip: Commit-ID: c3fbab7767c53397d7b849799474f5a27cf306e6 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/c3fbab7767c53397d7b849799474f5a27cf306e6 Author: Ye Guojin AuthorDate: Tue, 09 Nov 2021 05:59:58 Committer: Marc Zyngier CommitterDate: Fri, 10 Dec 2021 13:23:13 irqchip/irq-bcm7120-l2: Add put_device() after of_find_device_by_node() This was found by coccicheck: ./drivers/irqchip/irq-bcm7120-l2.c,328,1-7,ERROR missing put_device; call of_find_device_by_node on line 234, but without a corresponding object release within this function. ./drivers/irqchip/irq-bcm7120-l2.c,341,1-7,ERROR missing put_device; call of_find_device_by_node on line 234, but without a corresponding object release within this function. Reported-by: Zeal Robot Signed-off-by: Ye Guojin Reviewed-by: Florian Fainelli Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20211109055958.130287-1-ye.guojin@zte.com.cn --- drivers/irqchip/irq-bcm7120-l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-bcm7120-l2.c b/drivers/irqchip/irq-bcm7120-l2.c index d80e67a..bb6609c 100644 --- a/drivers/irqchip/irq-bcm7120-l2.c +++ b/drivers/irqchip/irq-bcm7120-l2.c @@ -238,6 +238,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, } data->num_parent_irqs = platform_irq_count(pdev); + put_device(&pdev->dev); if (data->num_parent_irqs <= 0) { pr_err("invalid number of parent interrupts\n"); ret = -ENOMEM;