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

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Fri Feb 18 04:30:09 PST 2022


Hello:

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

On Fri, 18 Feb 2022 10:19:39 +0800 you wrote:
> From: Xiaoke Wang <xkernel.wang at foxmail.com>
> 
> 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





More information about the linux-arm-kernel mailing list