🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14170

Re: [PATCH v2] net: stmmac: release MDIO node if bus data allocation fails

#14170
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 20:30
26 lines
8846 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sun, 08 Nov 2026 11:02:31 +0000 you wrote:
> stmmac_mdio_setup() takes a reference on the MDIO device tree node and
> stores it in plat->mdio_node before allocating plat->mdio_bus_data. If
> that allocation fails, the function returns -ENOMEM and the caller
> jumps to error_put_phy, which only drops plat->phy_node, so the
> reference on the MDIO node is leaked.
> 
> Release the reference before returning, using an error label so that
> the cleanup stays in one place.
> 
> [...]

Here is the summary with links:
  - [v2] net: stmmac: release MDIO node if bus data allocation fails
    https://git.kernel.org/netdev/net-next/c/8959c2030f5c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179434260468.42011.3541882891013618336.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360596-linux-kernel-netdev=dewy.ru
References: <20261108110231.315004-1-vulab@iscas.ac.cn>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360596-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2] net: stmmac: release MDIO node if bus data allocation
 fails
Date: Tue, 10 Nov 2026 20:30:04 +0000
Organization: Usenet Network
Message-ID: <179434260468.42011.3541882891013618336.git-patchwork-notify@kernel.org>
References: <20261108110231.315004-1-vulab@iscas.ac.cn>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="697765"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jf+KhrejHrEWIixioUTIXOYNck4= sha256:A4k8Ios59eqxoJ8UMYlcucNB5+UTeFfJZY6Lz+XMdgQ=
	sha1:bn5LBHeyPCec+UAwCKkhGdsA62E= sha256:iAqfhE6Jc6QUKEHt3Tb8BfWuBBittR2wjz/hfFSoMZA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 6D9B0113D13; Tue, 10 Nov 2026 23:40:55 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=pass (2048-bit key)
	header.d=kernel.org
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 PUJAL8Q21gQs;
	Tue, 10 Nov 2026 23:40:52 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-360596-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 0F1EB1139FF; Tue, 10 Nov 2026 23:40:43 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 559FF6457E9; Tue, 10 Nov 2026 20:31:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794342607;
	b=OLx3r6muW2N6ND01uWc28WMRrarxINo40/5GqhT3J+bF9p+nSXXoiptQl19qQyrLZKIb
	 Wc1frJop9Ovv+U59iZ23KSoouGpUcl1fgrozt502cSASOlCY/jkmtbvO6zxJd+6u6rJWQ
	 GPib/U4Ni2Qu/yCq/6ODQNFeKPLHwrdByRHz75XOl7+k7eehymrlHkd2EZPXH2dueh0Wn
	 g1P4WK2aub6n6C9NNnVy4pspViMdUOYnn3rmy4nHvJeMqxSVeEnlq3EUZbgvA03qWs4f3
	 bcnRHuHkePdtFxdrxCsrUB8cpLwTnYNa1Vfpj+gYPSrADJfkIUEFnYnkDbccT80X7Gg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794342607;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=DM5l0Pfmg26v1twgLSCXrEPpD+W/7qp0faXl0JQa9FI=;
	b=E8EKtrJn/vZHykOkYPLl+bseGCkDOgQKglT5hv0BAUBcV6yUJ4ABd4WnNrXZUhKNYiMw
	 hSnyr15E3yOwn/LXuN9kQ2uNa1k3VLXsHptjdhWSdVZQxpzRpP6z8pEOdD32NGhtQH669
	 /tPIoQxUBqTEa1zBAwieu5Y5lRDcacdxkTWJZDehdatVwv6d5eIeERWZINInSoKRHOjt8
	 fozTAYRM5qDIo11plzjCN1YI40dj7wS1TCl4eY6EtfsCpsQO+3HZFHB6w4tvqdU2T8/Tl
	 RYMNc50AMInMexmGbkw8bIk8NkDnvNFdv5HNqAiHPXTl5Y/30CJANqcbNM/ZXwFbDPg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D934ShSO;
	arc=pass header.oldest-pass=0 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 86305606AD5E;
	Tue, 10 Nov 2026 20:30:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D934ShSO
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794342606;
	b=aAxMcUVQsbqyCj0FFBWymzf76H3j+Z6WS6qzcLMgXL99xob1zUkLRoxFvE/VTwmRVCLO
	 PhS81Yv+3F4xPk+Q03KxA3hPGQ7DXgBTKZ/qNdNAHpQYZik8itdcKWsvXkktjfBLwQ/c0
	 ME5b0Fe7VXnYEMnBae26DlXjMo05755q9i5w3s7pq1ouMYWvlPYJApf4x2dM5wk85fCKH
	 NgLzpis6CKYLBtb6aVpBkEPBjhCxHEbRkfQmQUeXjFbFIoeIK+iyXEFIHZ5Hb5yjkgd5F
	 6zTgbx2cvQ1I/JUBhl/Xni+nfHHveG/+/V2JoQwCU6bQhlPlvGGzU8+q82n7xV6kFZA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794342606;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=DM5l0Pfmg26v1twgLSCXrEPpD+W/7qp0faXl0JQa9FI=;
	b=3vVBySeEJUlBh2UAgFJNHW4A9ffWwGUHy3vIELyoydGQ1UZnHDEouHqpflViUWc+7sop
	 ACfKQpaBqshnIlkU0ye/vYa9SpXQn3L+steu81St50sDci3KGZoR8TKuJtiyym4/CqjYB
	 q4CZq9DP3nVY1uii0iDneRTb0CgHvHtZa9UuGpAspGThb/QKjZsrdg5F+RTSjQfu5p2rF
	 F2lLuj/DyqbL9Ew9eOJU+VMOh3UI1+H1yLs2yLkkD8Nv7LTZaQVa1bk9OffsDLl1icbPp
	 fd0BcbQvJwueeRNSZO34Z/aJvxmKpj7n8hQvX9HttV6/2kyWLQ1CNavKOdT4roo/IIQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D934ShSO;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61BFC606A898;
	Tue, 10 Nov 2026 20:30:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9D811F0089F;
	Tue, 10 Nov 2026 20:30:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794342606;
	bh=DM5l0Pfmg26v1twgLSCXrEPpD+W/7qp0faXl0JQa9FI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=D934ShSO+lyR7iZIfUw0lnk/ThUaqyU5sRBmb2Z4WuYW3F4KXdAS7Y0PZttHz1po7
	 6D2OlNlfJsTGU+8FbaDRwLDfwMJaHnMvcFDpLxPraOGEWd20BWRYtu33BOFj4YOziI
	 6oCrRyTGe0FR8HLIbBQ7v220CDHpvAZWS8LFsdOGiQg5oufi96S8xNiU+YkmC0WXKN
	 PnFl9/vUvesBVFdGeywTSrhqfUXhr8hGt/NM1+KvU+J+DM4IgYR7KrNhmMIc9hRdK1
	 YaPMduE+Zl1lMtJBxmqLU3Y4uUrBaCkRRZtIFcO+7QwiNDcRcg+7vp4EwM6grKjntQ
	 bT8sREwJawVdA==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D828C39D6573;
	Tue, 10 Nov 2026 20:30:05 +0000 (UTC)
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-In-Reply-To: <20261108110231.315004-1-vulab@iscas.ac.cn>
X-Cc: maxime.chevallier@bootlin.com, alexandre.torgue@foss.st.com,
 netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
 mcoquelin.stm32@gmail.com, horms@kernel.org,
 linux-stm32@st-md-mailman.stormreply.com,
 linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org