Re: [PATCH v2] net: ll_temac: check the return value of devm_kmalloc()

From: patchwork-bot+netdevbpf
Date: Fri Feb 18 2022 - 07:30:14 EST


Hello:

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

On Fri, 18 Feb 2022 10:19:39 +0800 you wrote:
> From: Xiaoke Wang <xkernel.wang@xxxxxxxxxxx>
>
> devm_kmalloc() returns a pointer to allocated memory on success, NULL
> on failure. While lp->indirect_lock is allocated by devm_kmalloc()
> without proper check. It is better to check the value of it to
> prevent potential wrong memory access.
>
> [...]

Here is the summary with links:
- [v2] net: ll_temac: check the return value of devm_kmalloc()
https://git.kernel.org/netdev/net/c/b352c3465bb8

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