]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Fix btf leak on new btf alloc failure in btf_distill test
authorPu Lehui <pulehui@huawei.com>
Wed, 15 Jan 2025 10:02:38 +0000 (10:02 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 16 Jan 2025 23:34:18 +0000 (15:34 -0800)
commit4a04cb326a6c7f9a2c066f8c2ca78a5a9b87ddab
treeb7957cfed555bb1f369a4d35ebbaab856906a32e
parent7c311b7cb3c7d84c5c342e803c5cb1b2fabbc438
selftests/bpf: Fix btf leak on new btf alloc failure in btf_distill test

Fix btf leak on new btf alloc failure in btf_distill test.

Fixes: affdeb50616b ("selftests/bpf: Extend distilled BTF tests to cover BTF relocation")
Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20250115100241.4171581-1-pulehui@huaweicloud.com
tools/testing/selftests/bpf/prog_tests/btf_distill.c