Re: [PATCH v2] net: dsa: felix: fix possible NULL pointer dereference
From: patchwork-bot+netdevbpf
Date: Wed Mar 30 2022 - 15:30:21 EST
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Tue, 29 Mar 2022 09:08:00 +0000 you wrote:
> As the possible failure of the allocation, kzalloc() may return NULL
> pointer.
> Therefore, it should be better to check the 'sgi' in order to prevent
> the dereference of NULL pointer.
>
> Fixes: 23ae3a7877718 ("net: dsa: felix: add stream gate settings for psfp").
> Signed-off-by: Zheng Yongjun <zhengyongjun3@xxxxxxxxxx>
>
> [...]
Here is the summary with links:
- [v2] net: dsa: felix: fix possible NULL pointer dereference
https://git.kernel.org/netdev/net/c/866b7a278cdb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html