diff options
author | Qing Wang <wangqing@vivo.com> | 2021-10-18 14:30:48 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-10-21 04:43:15 +0300 |
commit | db5b6a46f43aba3473c8b6b1d11aff1fa2aa354b (patch) | |
tree | 1b8b03470c2f3c701ae0d0a4b7fca7e8b50f16b7 /include/uapi/linux/vm_sockets_diag.h | |
parent | 7960d02dddccc0676d4a1b58e9964718b47388e1 (diff) | |
download | linux-db5b6a46f43aba3473c8b6b1d11aff1fa2aa354b.tar.xz |
net: bpf: Switch over to memdup_user()
This patch fixes the following Coccinelle warning:
net/bpf/test_run.c:361:8-15: WARNING opportunity for memdup_user
net/bpf/test_run.c:1055:8-15: WARNING opportunity for memdup_user
Use memdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives
Signed-off-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/1634556651-38702-1-git-send-email-wangqing@vivo.com
Diffstat (limited to 'include/uapi/linux/vm_sockets_diag.h')
0 files changed, 0 insertions, 0 deletions