Re: [PATCH net] net: hsr: prevent NULL pointer dereference in hsr_proxy_announce()
From: patchwork-bot+netdevbpf
Date: Wed Sep 11 2024 - 19:20:55 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sun, 8 Sep 2024 04:03:41 +0900 you wrote:
> In the function hsr_proxy_annouance() added in the previous commit
> 5f703ce5c981 ("net: hsr: Send supervisory frames to HSR network
> with ProxyNodeTable data"), the return value of the hsr_port_get_hsr()
> function is not checked to be a NULL pointer, which causes a NULL
> pointer dereference.
>
> To solve this, we need to add code to check whether the return value
> of hsr_port_get_hsr() is NULL.
>
> [...]
Here is the summary with links:
- [net] net: hsr: prevent NULL pointer dereference in hsr_proxy_announce()
https://git.kernel.org/netdev/net/c/a7789fd4caaf
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html