]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Fix unintentional switch case fall through
authorMykyta Yatsenko <yatsenko@meta.com>
Tue, 17 Jun 2025 12:15:36 +0000 (13:15 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 17 Jun 2025 20:24:31 +0000 (13:24 -0700)
commit66ab68c9de89672366fdc474f4f185bb58cecf2d
tree9b89e91fe7556992cc6d5c43ae3fa1668f7d2de1
parentfc2915bb8bfcfdc6e5ea2cfc8d13fbaefe77c2c8
selftests/bpf: Fix unintentional switch case fall through

Break from switch expression after parsing -n CLI argument in veristat,
instead of falling through and enabling comparison mode.

Fixes: a5c57f81eb2b ("veristat: add ability to set BPF_F_TEST_SANITY_STRICT flag with -r flag")
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20250617121536.1320074-1-mykyta.yatsenko5@gmail.com
tools/testing/selftests/bpf/veristat.c