Re: [PATCH] net/sched: act_pedit: Use kmemdup() to replace kmalloc + memcpy

From: patchwork-bot+netdevbpf
Date: Mon Jun 12 2023 - 04:40:55 EST


Hello:

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

On Fri, 9 Jun 2023 15:01:17 +0800 you wrote:
> ./net/sched/act_pedit.c:245:21-28: WARNING opportunity for kmemdup.
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5478
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
> ---
> net/sched/act_pedit.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)

Here is the summary with links:
- net/sched: act_pedit: Use kmemdup() to replace kmalloc + memcpy
https://git.kernel.org/netdev/net-next/c/26e35370b976

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