summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2020-09-15 14:39:28 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-09-19 02:01:18 +0300
commitfec47bbc10b243690f5d0ee484a0bbdee273e71b (patch)
treedb40259d9394e53727ab2328412577b4badbf1da /samples
parentb6ed6cf4a3acdeab9aed8e0a524850761ec9b152 (diff)
downloadlinux-fec47bbc10b243690f5d0ee484a0bbdee273e71b.tar.xz
selftests/bpf: Fix endianness issue in test_sockopt_sk
getsetsockopt() calls getsockopt() with optlen == 1, but then checks the resulting int. It is ok on little endian, but not on big endian. Fix by checking char instead. Fixes: 8a027dc0d8f5 ("selftests/bpf: add sockopt test that exercises sk helpers") Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200915113928.3768496-1-iii@linux.ibm.com
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions