Re: [PATCH v2] net: phy: fix phy_get_internal_delay accessing an empty array

From: patchwork-bot+netdevbpf
Date: Fri Mar 08 2024 - 05:21:02 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Thu, 7 Mar 2024 12:19:06 +0100 you wrote:
> The phy_get_internal_delay function could try to access to an empty
> array in the case that the driver is calling phy_get_internal_delay
> without defining delay_values and rx-internal-delay-ps or
> tx-internal-delay-ps is defined to 0 in the device-tree.
> This will lead to "unable to handle kernel NULL pointer dereference at
> virtual address 0". To avoid this kernel oops, the test should be delay
> >= 0. As there is already delay < 0 test just before, the test could
> only be size == 0.
>
> [...]

Here is the summary with links:
- [v2] net: phy: fix phy_get_internal_delay accessing an empty array
https://git.kernel.org/netdev/net/c/4469c0c5b14a

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