diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-12-09 14:21:22 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-11 17:57:33 -0800 |
commit | 4674f21071b935c237217ac02cb310522d6ad95d (patch) | |
tree | ac9769e52f8beb1f498502aee04aa18b0ff47e08 /kernel/latencytop.c | |
parent | 84ef3f0bb72dfcdeb7ff3e5335882f6084381437 (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