summaryrefslogtreecommitdiff
path: root/kernel/latencytop.c
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2021-12-09 14:21:22 +0800
committerAlexei Starovoitov <ast@kernel.org>2021-12-11 17:57:33 -0800
commit4674f21071b935c237217ac02cb310522d6ad95d (patch)
treeac9769e52f8beb1f498502aee04aa18b0ff47e08 /kernel/latencytop.c
parent84ef3f0bb72dfcdeb7ff3e5335882f6084381437 (diff)
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 'kernel/latencytop.c')
0 files changed, 0 insertions, 0 deletions