Re: [PATCH net v2 1/3] bus: fsl-mc: Fix potential double device reference in fsl_mc_get_endpoint()

From: patchwork-bot+netdevbpf
Date: Fri Jul 18 2025 - 20:20:02 EST


Hello:

This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 17 Jul 2025 10:23:07 +0800 you wrote:
> The fsl_mc_get_endpoint() function may call fsl_mc_device_lookup()
> twice, which would increment the device's reference count twice if
> both lookups find a device. This could lead to a reference count leak.
>
> Found by code review.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 1ac210d128ef ("bus: fsl-mc: add the fsl_mc_get_endpoint function")
> Signed-off-by: Ma Ke <make24@xxxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [net,v2,1/3] bus: fsl-mc: Fix potential double device reference in fsl_mc_get_endpoint()
https://git.kernel.org/netdev/net/c/bddbe13d36a0
- [net,v2,2/3] dpaa2-eth: Fix device reference count leak in MAC endpoint handling
https://git.kernel.org/netdev/net/c/ee9f3a81ab08
- [net,v2,3/3] dpaa2-switch: Fix device reference count leak in MAC endpoint handling
https://git.kernel.org/netdev/net/c/96e056ffba91

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