Re: [PATCH] net: mpls: fix memdup.cocci warning

From: Jakub Kicinski
Date: Wed Mar 23 2022 - 11:48:16 EST


On Wed, 23 Mar 2022 16:07:06 +0800 GONG, Ruiqi wrote:
> Simply use kmemdup instead of explicitly allocating and copying memory.
>
> Generated by: scripts/coccinelle/api/memdup.cocci
>
> Fixes: 7d4741eacdef ("net: mpls: Fix notifications when deleting a device")

Fixes tag are for bugs.

> Signed-off-by: GONG, Ruiqi <gongruiqi1@xxxxxxxxxx>

net-next is closed during the merge window please repost in 2 weeks.