Re: [PATCH net] net: phylink: correctly validate returned PCS in phylink_inband_caps

From: patchwork-bot+netdevbpf

Date: Thu Aug 20 2026 - 17:26:00 EST


Hello:

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

On Mon, 17 Aug 2026 23:30:03 +0200 you wrote:
> In phylink_inband_caps(), the PCS returned by mac_select_pcs is only
> checked if NULL but mac_select_pcs can also return an error pointer.
>
> This can cause a kernel panic as phylink_pcs_inband_caps() only checks
> if passed PCS is not NULL and directly dereference ops from the phylink_pcs
> struct.
>
> [...]

Here is the summary with links:
- [net] net: phylink: correctly validate returned PCS in phylink_inband_caps
https://git.kernel.org/netdev/net/c/f2849b1fd059

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