summaryrefslogtreecommitdiffstats
path: root/mm/util.c
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-12-09 07:21:22 +0100
committerAlexei Starovoitov <ast@kernel.org>2021-12-12 02:57:33 +0100
commit4674f21071b935c237217ac02cb310522d6ad95d (patch)
treeac9769e52f8beb1f498502aee04aa18b0ff47e08 /mm/util.c
parentMerge branch 'introduce bpf_strncmp() helper' (diff)
downloadlinux-4674f21071b935c237217ac02cb310522d6ad95d.tar.xz
linux-4674f21071b935c237217ac02cb310522d6ad95d.zip
bpf: Use kmemdup() to replace kmalloc + memcpy
Eliminate the follow coccicheck warning: ./kernel/bpf/btf.c:6537:13-20: WARNING opportunity for kmemdup. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/1639030882-92383-1-git-send-email-jiapeng.chong@linux.alibaba.com
Diffstat (limited to 'mm/util.c')
0 files changed, 0 insertions, 0 deletions