diff options
author | Jiapeng Chong <[email protected]> | 2021-12-09 14:21:22 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-12-11 17:57:33 -0800 |
commit | 4674f21071b935c237217ac02cb310522d6ad95d (patch) | |
tree | ac9769e52f8beb1f498502aee04aa18b0ff47e08 /net/unix/sysctl_net_unix.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 <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/1639030882-92383-1-git-send-email-jiapeng.chong@linux.alibaba.com
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions