]> git.dujemihanovic.xyz Git - linux.git/commit
selftests/bpf: do not pass NULL for non-nullable params in dummy_st_ops
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 24 Apr 2024 01:28:19 +0000 (18:28 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Apr 2024 19:42:43 +0000 (12:42 -0700)
commitf612210d456a0b969a0adca91e68dbea0e0ea301
tree1158bf3d384b77d23829af05650ae92f3668c44a
parent3b3b84aacb4420226576c9732e7b539ca7b79633
selftests/bpf: do not pass NULL for non-nullable params in dummy_st_ops

dummy_st_ops.test_2 and dummy_st_ops.test_sleepable do not have their
'state' parameter marked as nullable. Update dummy_st_ops.c to avoid
passing NULL for such parameters, as the next patch would allow kernel
to enforce this restriction.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240424012821.595216-4-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
tools/testing/selftests/bpf/progs/dummy_st_ops_success.c