aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <[email protected]>2023-06-06 13:30:47 +0200
committerDaniel Borkmann <[email protected]>2023-06-06 17:08:22 +0200
commit095641817e1bf6aa2560e025e47575188ee3edaf (patch)
tree15286ef57c83c8bf494f1fb949a4d9f64ea55d6c /tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
parentaa6182707a53c5e4df7b3da7ba4faa7e29dc71a0 (diff)
selftests/bpf: Fix check_mtu using wrong variable type
Dan Carpenter found via Smatch static checker, that unsigned 'mtu_lo' is never less than zero. Variable mtu_lo should have been an 'int', because read_mtu_device_lo() uses minus as error indications. Fixes: b62eba563229 ("selftests/bpf: Tests using bpf_check_mtu BPF-helper") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/bpf/168605104733.3636467.17945947801753092590.stgit@firesoul
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c')
0 files changed, 0 insertions, 0 deletions