Jiapeng Chong 4674f21071 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
2021-12-11 17:57:33 -08:00
..
2021-05-24 21:13:05 -07:00
2021-11-30 10:56:28 -08:00
2021-07-07 20:01:45 -07:00
2020-03-13 12:49:52 -07:00
2021-12-11 17:40:23 -08:00
2021-07-15 22:31:10 +02:00
2020-08-28 15:41:30 +02:00
2021-05-24 21:13:05 -07:00
2021-11-12 10:19:09 -08:00
2021-11-12 10:19:09 -08:00