Messages in this thread | | | Subject | Re: [PATCH v2] net: ll_temac: check the return value of devm_kmalloc() | From | patchwork-bot+netdevbpf@kernel ... | Date | Fri, 18 Feb 2022 12:30:09 +0000 |
| |
Hello:
This patch was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>:
On Fri, 18 Feb 2022 10:19:39 +0800 you wrote: > From: Xiaoke Wang <xkernel.wang@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
| |