diff options
| author | Colin Ian King <[email protected]> | 2020-07-27 17:54:11 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-07-28 10:40:10 +0000 |
| commit | f6dfbe31e8fa5cbd5bc89df9d7f0fa0af7e69981 (patch) | |
| tree | 1172b5424e4e6ff8e0b8a447a0718762641b3ba3 /tools/testing/selftests/bpf/tcp_server.py | |
| parent | selftests/bpf: Add new bpf_iter context structs to fix build on old kernels (diff) | |
| download | kernel-f6dfbe31e8fa5cbd5bc89df9d7f0fa0af7e69981.tar.gz kernel-f6dfbe31e8fa5cbd5bc89df9d7f0fa0af7e69981.zip | |
bpf: Fix swapped arguments in calls to check_buffer_access
There are a couple of arguments of the boolean flag zero_size_allowed and
the char pointer buf_info when calling to function check_buffer_access that
are swapped by mistake. Fix these by swapping them to correct the argument
ordering.
Fixes: afbf21dce668 ("bpf: Support readonly/readwrite buffers in verifier")
Addresses-Coverity: ("Array compared to 0")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/tcp_server.py')
0 files changed, 0 insertions, 0 deletions
