Skip to content
Commit 27a5a568 authored by GONG, Ruiqi's avatar GONG, Ruiqi Committed by Jakub Kicinski
Browse files

net: mpls: fix memdup.cocci warning



Simply use kmemdup instead of explicitly allocating and copying memory.

Generated by: scripts/coccinelle/api/memdup.cocci

Signed-off-by: default avatarGONG, Ruiqi <gongruiqi1@huawei.com>
Link: https://lore.kernel.org/r/20220406114629.182833-1-gongruiqi1@huawei.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 26894cd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment