]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Fix outdated test on storage->smap
authorAmery Hung <ameryhung@gmail.com>
Thu, 5 Feb 2026 22:29:15 +0000 (14:29 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 6 Feb 2026 22:48:05 +0000 (14:48 -0800)
commit97b859b5ed04dbbe99be19895d8498009a19553f
tree64a48da23cba00eae16c121f9a0e73bba714ead5
parentcdce7b0848f6f2be4c6d7dbf243244981d315f6f
selftests/bpf: Fix outdated test on storage->smap

bpf_local_storage_free() already does not rely on local_storage->smap
since switching to kmalloc_nolock(). As local_storage->smap is removed,
fix the outdated test by dropping the local_storage->smap check. Keep
the second map in task local storage map test to test that multiple
elements can be added to the storage similar to sk storage test.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260205222916.1788211-18-ameryhung@gmail.com
tools/testing/selftests/bpf/progs/local_storage.c