Re: [PATCH net-next] net/tls: tls_is_tx_ready() checked list_entry

From: patchwork-bot+netdevbpf
Date: Tue Jan 31 2023 - 00:20:25 EST


Hello:

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

On Sat, 28 Jan 2023 16:29:17 +0000 you wrote:
> tls_is_tx_ready() checks that list_first_entry() does not return NULL.
> This condition can never happen. For empty lists, list_first_entry()
> returns the list_entry() of the head, which is a type confusion.
> Use list_first_entry_or_null() which returns NULL in case of empty
> lists.
>
> Fixes: a42055e8d2c3 ("net/tls: Add support for async encryption of records for performance")
> Signed-off-by: Pietro Borrello <borrello@xxxxxxxxxxxxxxxx>
>
> [...]

Here is the summary with links:
- [net-next] net/tls: tls_is_tx_ready() checked list_entry
https://git.kernel.org/netdev/net/c/ffe2a2256244

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