]> Git Repo - linux.git/commit
samples/bpf: Fix application of sizeof to pointer
authorDavid Yang <[email protected]>
Tue, 12 Oct 2021 11:16:49 +0000 (19:16 +0800)
committerAndrii Nakryiko <[email protected]>
Wed, 20 Oct 2021 17:55:33 +0000 (10:55 -0700)
commitb599015f044df53e93ad0a2957b615bc1a26bf73
treeb92e5ce1f819c075ab3a0f4b84355649aba640bb
parentefc36d6c642a753c2880d97b8e8c3c7cfaf64ad1
samples/bpf: Fix application of sizeof to pointer

The coccinelle check report:
"./samples/bpf/xdp_redirect_cpu_user.c:397:32-38:
ERROR: application of sizeof to pointer"
Using the "strlen" to fix it.

Reported-by: Zeal Robot <[email protected]>
Signed-off-by: David Yang <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
samples/bpf/xdp_redirect_cpu_user.c
This page took 0.043693 seconds and 4 git commands to generate.