🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #22941

Re: [PATCH net] net: ti: icssm-prueth: Retain port node references until remove

#22941
From: Parvathi Pudi
Date: Thu, 26 Nov 2026 07:57
52 lines
12923 bytes
Hi,

> icssm_prueth_probe() takes a reference to each available port node and
> stores the nodes in prueth->eth_node[]. Those references are released
> both at the end of a successful probe and in icssm_prueth_remove(), leaving
> one excess put per port after unbinding the driver.
> 
> Keep the references after a successful probe, since the stored nodes are
> used during teardown. The existing remove path and probe error path then
> each release the references only when they own them.
> 
> Fixes: 511f6c1ae093 ("net: ti: icssm-prueth: Adds ICSSM Ethernet driver")
> Signed-off-by: Yige Jiang <yigejiang86@gmail.com>
> ---
> AI assistance was used for analysis and patch preparation.
> 
> Based on next-20261104 (8b7179210b22).
> Compile-tested: arm64, GCC 14.2.0, W=1,
> drivers/net/ethernet/ti/icssm/icssm_prueth.o;
> baseline and patched objects built with no warnings.
> Static source review; no hardware, boot, or KASAN test was performed.
> 
> drivers/net/ethernet/ti/icssm/icssm_prueth.c | 4 ----
> 1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/net/ethernet/ti/icssm/icssm_prueth.c
> b/drivers/net/ethernet/ti/icssm/icssm_prueth.c
> index
> b42c98e861e081d6c616881786b94e8bcde6b944..4f9529e0e404fd9cfee9e7340f2f048442ab938a
> 100644
> --- a/drivers/net/ethernet/ti/icssm/icssm_prueth.c
> +++ b/drivers/net/ethernet/ti/icssm/icssm_prueth.c
> @@ -2018,10 +2018,6 @@ static int icssm_prueth_probe(struct platform_device
> *pdev)
> 	dev_info(dev, "TI PRU ethernet driver initialized: %s EMAC mode\n",
> 		 (!eth0_node || !eth1_node) ? "single" : "dual");
> 
> -	if (eth1_node)
> -		of_node_put(eth1_node);
> -	if (eth0_node)
> -		of_node_put(eth0_node);
> 	return 0;
> 
> netdev_unregister:
> 
> base-commit: 8b7179210b22f8e48a82c5ceacb9d56a9c4cfec4

Reviewed-by: Parvathi Pudi <parvathi@couthit.com>

Thanks and Regards,
Parvathi.
Technical Details
Message-ID: <1112845239.887064.1795679870638.JavaMail.zimbra@couthit.local>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371927-linux-kernel-netdev=dewy.ru
References: <confirmed-20261105-26-ee6bb3813c44@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-371927-linux-kernel-netdev=dewy.ru
From: parvathi@couthit.com (Parvathi Pudi)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: ti: icssm-prueth: Retain port node references
 until remove
Date: Thu, 26 Nov 2026 13:27:50 +0530 (IST)
Organization: Usenet Network
Message-ID: <1112845239.887064.1795679870638.JavaMail.zimbra@couthit.local>
References: <confirmed-20261105-26-ee6bb3813c44@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="410661"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PskzOY+dhb0ov97b1vQE0mOz6kw= sha256:JJGDfPN34EZgqC1aicpguC8E4QiyVHedFBoQaoi8F1E=
	sha1:A1LBLoXimACRW6Snt8GWKnrPDQQ= sha256:RKgRvRmucj7LpdFeMZuOdp2NHiddiFWA6l4+znHDEzg=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
	X-Source
	X-Source-Args
	X-Source-Dir
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id E57C3125EB4; Thu, 26 Nov 2026 10:58:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.851
X-Spam-Status: No, score=-2.851 tagged_above=-9999 required=6.31
	tests=[DKIM_INVALID=0.1, DKIM_SIGNED=0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (2048-bit key)
	reason="fail (message has been altered)" header.d=couthit.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WzppUyzFmlXM;
	Thu, 26 Nov 2026 10:58:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-371927-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=couthit.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 947F2125EB0; Thu, 26 Nov 2026 10:58:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id DC96B2F55E; Thu, 26 Nov 2026 07:58:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1795679884;
	b=kfJcQZSAXzrQPVCSogsIyfQPc7haVOTtGwQlkMzhTlrYkRdhkH2jtXNb4sbGw6H7wNjB
	 rsDJN9YjhvnlsNGloF1kAHdzFsraGw6YQ0bNvYvfyuOiY8l8Cre4GZi7jNiCyQDE5H1KR
	 v063EZTl+k/gsy4tETOoppcaWAAG+QNtrii03IbQxMyincYkZQ8tHgtOcz+KmOAhTYy+j
	 095yr6S8JWN13PFQFqrsBpEL3pVuENlQQ9i1v+hO/ES2NnAsWP4SlY/At67ol7eW6EYBT
	 MzQqcpVnNejMy9sQscQR999484/6j1r91KywI06CdCpheF/SKXkddWH7TAdjBxcVchA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795679884;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Received:
	 Received:Received:X-Virus-Scanned:Received:Received:Date:From:To:Cc:
	 Message-ID:In-Reply-To:References:Subject:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
	 X-Mailer:Thread-Topic:Thread-Index:X-AntiAbuse:X-AntiAbuse:
	 X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-Get-Message-Sender-Via:
	 X-Authenticated-Sender:X-Source:X-Source-Args:X-Source-Dir;
	bh=OL55ImhmBp8fM3GmtTJh4abvR8DngDWjBaxkdBPdVd4=;
	b=G4eqdffYDxCdqF7mkRSMoSnEtisW/HudjVkUML+q9Qk0fubgmWXRyozyxZCNGv+0R9rr
	 vgukFf/S8nDWT8zRVkjmCY/wWZyd3zz+x76lhwZbtOBGDYwcY5ev6+Fn+btAbpcxohpyX
	 tBL6kcpZ/VOkd887SAHSjYbOaRv15b5Ubo7sCIucGmBZQVi8RpnNgWE9O9CLrhMGIj8gZ
	 8orew1LgIaQALUPTBsMkpP1kQMy8gBfFerFjvqJuxAXcrwLKJvMiFvO/tNL0ARAAvTHvB
	 dVoRFstl71OPQS/FlCpickODClkJpBeEKSilg+uFdywPciJrmrVWlN9mGazL+eBbKAA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=fail reason="signature verification failed" header.d=couthit.com header.i=@couthit.com header.a=rsa-sha256 header.s=default header.b=nwp5dRKO;
	dmarc=pass header.from=couthit.com;
	spf=pass smtp.mailfrom=couthit.com;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BB31606A335;
	Thu, 26 Nov 2026 07:58:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=fail reason="signature verification failed" (2048-bit key) header.d=couthit.com header.i=@couthit.com header.a=rsa-sha256 header.s=default header.b=nwp5dRKO
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=162.240.164.96
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795679883;
	b=Yni6tQm8kDzLBRmzFmhE7WV3sdS6++Rlo8FTD2n12UkUtoS2o80QUknnvZODyIMHzAZl
	 XqcXau9VkpRI3ig9whuDOGcRru0C5hLtRQb6ehIqXz/6cvLlnQXyoU28nnNckSkeuthcu
	 js/9dnqGqruR+xt6POYZqNC3JJV6h/8j/0ijb9O4chqhc+UDXN6miEsk4zIEaa8YVjY8H
	 n7qb+2dtRB5sdFvPp3O3q+/yZGS1Qc2HOjVSz2ZmaN5QqIvNEpCDTXwDFGfM6kMZdk6iI
	 pHOSYwKEXjZnhR521q6yo/phb2g5G9vBGhGTpOjTzrsydqhGfPgBydaK7NHcBi1nm1g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795679883;
	h=DMARC-Filter:DKIM-Signature:Received:Received:Received:Received:
	 X-Virus-Scanned:Received:Received:Date:From:To:Cc:Message-ID:
	 In-Reply-To:References:Subject:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:X-Originating-IP:X-Mailer:Thread-Topic:
	 Thread-Index:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:X-AntiAbuse:
	 X-AntiAbuse:X-Get-Message-Sender-Via:X-Authenticated-Sender:X-Source:
	 X-Source-Args:X-Source-Dir;
	bh=OL55ImhmBp8fM3GmtTJh4abvR8DngDWjBaxkdBPdVd4=;
	b=bdAswMwJDlYbEv3YKNhEJWaZ2jfmObrbU7lITxgHPK+sw4hzAC5+DMPxevDNizaGpH6j
	 UqNfFd8S4FuSuD/04bseYm2Kqo+86N+GiCTiCkFJ0bRMttPZhvqsy0/ouDQNYFsaaw35m
	 i9h040VSmMsDbhj6ACEBTzy/UV4fYAYZZvnjew57hsaLv5O7lqVJgNvVdrMaJGZu0qXjl
	 x/wILFO2iKSaUIi6slZtGVgdwiawKVExtwdN7nflTqBAecwx/vi8y+cKg+GiPmrDoIw5K
	 mrmSs0TozKRR2yszd1CahIpRrj5hkiUABJhePNDQ3HDgqQzX8fWQ7DNEctMY6E5PLvA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=couthit.com;
	spf=pass smtp.mailfrom=couthit.com;
	dkim=pass header.d=couthit.com header.i=@couthit.com header.a=rsa-sha256 header.s=default header.b=nwp5dRKO;
	arc=none smtp.remote-ip=162.240.164.96
X-Received: from server.couthit.com (server.couthit.com [162.240.164.96])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F52E606A31E;
	Thu, 26 Nov 2026 07:58:02 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1F52E606A31E
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=couthit.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=couthit.com
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=couthit.com
	; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
	References:In-Reply-To:Message-ID:Cc:To:From:Date:Sender:Reply-To:Content-ID:
	Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
	:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
	List-Post:List-Owner:List-Archive;
	bh=OL55ImhmBp8fM3GmtTJh4abvR8DngDWjBaxkdBPdVd4=; b=nwp5dRKO66yTK8q8ECx+Hss6gR
	Gb5sQd4FVRKNmpYhornibguhcZfjq7q+x3ON4pWXWp2E1hWMqqzGZgnZdZSyEt48NTl1y8rdRdroa
	enOgPraTh0VzQy8qRl7TclLb/QQAKIMRb2Zen1eeGCgCfQljBNHgTUrYv3G2aK42WIbwB0k5I9krI
	CcwSKKY+4MisKcGWnWR2WyIkXeQMRpVwod3JAaIRYK/DXQDWDF73AHva/0mDDAb8aQeQ90BHCQyjA
	zvE35tDVQA7NiOI0VoZrjus4TGVwz8A0dulZ5AiNRfI9VrV+M9VeMN15Vcqb5f3fDa6+yS18OyBiA
	EukEQ0Vg==;
X-Received: from [115.246.246.98] (port=29389 helo=zimbra.couthit.local)
	by server.couthit.com with esmtpsa  (TLS1.3) tls TLS_AES_256_GCM_SHA384
	(Exim 4.99.5)
	(envelope-from <parvathi@couthit.com>)
	id 1xWUMd-00000006r09-1PG2;
	Thu, 26 Nov 2026 02:57:55 -0500
X-Received: from localhost (localhost [127.0.0.1])
	by zimbra.couthit.local (Postfix) with ESMTP id 0B64D1B80119;
	Thu, 26 Nov 2026 13:27:52 +0530 (IST)
X-Received: from zimbra.couthit.local ([127.0.0.1])
 by localhost (zimbra.couthit.local [127.0.0.1]) (amavis, port 10032)
 with ESMTP id WNNHpjXhAkh1; Thu, 26 Nov 2026 13:27:50 +0530 (IST)
X-Received: from localhost (localhost [127.0.0.1])
	by zimbra.couthit.local (Postfix) with ESMTP id C74591B80167;
	Thu, 26 Nov 2026 13:27:50 +0530 (IST)
X-Virus-Scanned: amavis at couthit.local
X-Received: from zimbra.couthit.local ([127.0.0.1])
 by localhost (zimbra.couthit.local [127.0.0.1]) (amavis, port 10026)
 with ESMTP id O-RUpmCoObAk; Thu, 26 Nov 2026 13:27:50 +0530 (IST)
X-Received: from zimbra.couthit.local (zimbra.couthit.local [10.10.10.103])
	by zimbra.couthit.local (Postfix) with ESMTP id AD86F1B80119;
	Thu, 26 Nov 2026 13:27:50 +0530 (IST)
X-Cc: MD Danish Anwar <danishanwar@ti.com>, Parvathi Pudi <parvathi@couthit.com>, 
	Roger Quadros <rogerq@kernel.org>, 
	Mohan Reddy Putluru <pmohan@couthit.com>, 
	Andrew Lunn <andrew+netdev@lunn.ch>, 
	"David S. Miller" <davem@davemloft.net>, 
	Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, 
	Paolo Abeni <pabeni@redhat.com>, 
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>, 
	netdev <netdev@vger.kernel.org>, 
	linux-kernel <linux-kernel@vger.kernel.org>
X-In-Reply-To: <confirmed-20261105-26-ee6bb3813c44@gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-Mailer: Zimbra 9.0.0_ZEXTRAS_20240927 (ZimbraWebClient - GC148 (Mac)/9.0.0_ZEXTRAS_20240927)
X-Thread-Topic: icssm-prueth: Retain port node references until remove
X-Thread-Index: SGID6YUxBG5lHjcZ6qjhdNoL9iQyXg==
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server.couthit.com
X-AntiAbuse: Original Domain - vger.kernel.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - couthit.com
X-Get-Message-Sender-Via: server.couthit.com: authenticated_id: smtp@couthit.com
X-Authenticated-Sender: server.couthit.com: smtp@couthit.com