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: NZeal Robot <zealci@zte.com.cn> Signed-off-by: NDavid Yang <davidcomponentone@gmail.com> Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20211012111649.983253-1-davidcomponentone@gmail.com
Showing
想要评论请 注册 或 登录