commit | 4674f21071b935c237217ac02cb310522d6ad95d | [log] [tgz] |
---|---|---|
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | Thu Dec 09 14:21:22 2021 +0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Sat Dec 11 17:57:33 2021 -0800 |
tree | ac9769e52f8beb1f498502aee04aa18b0ff47e08 | |
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