diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-27 18:54:11 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-28 12:40:10 +0200 |
commit | f6dfbe31e8fa5cbd5bc89df9d7f0fa0af7e69981 (patch) | |
tree | 1172b5424e4e6ff8e0b8a447a0718762641b3ba3 /net/xdp | |
parent | 363885d7c62e293fb093c7c355bf5f05fa0a25a9 (diff) |
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 <colin.king@canonical.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200727175411.155179-1-colin.king@canonical.com
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions