Re: [PATCH] net: hisilicon: hns_dsaf_mac: fix mdio device leak in hns_mac_register_phy()

From: patchwork-bot+netdevbpf

Date: Tue Sep 22 2026 - 07:28:14 EST


Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 17 Sep 2026 11:08:28 +0000 you wrote:
> hns_dsaf_find_platform_device() returns the mdio platform device with its
> reference count incremented. hns_mac_register_phy() never drops that
> reference, so the mdio device can not be released.
>
> Release the reference on both the deferred probe and the normal path.
>
> Fixes: 1d1afa2ebf82 ("net: hns: register phy device in each mac initial sequence")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
>
> [...]

Here is the summary with links:
- net: hisilicon: hns_dsaf_mac: fix mdio device leak in hns_mac_register_phy()
https://git.kernel.org/netdev/net/c/999e8295bc41

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html