diff options
author | Andrii Nakryiko <[email protected]> | 2020-07-28 21:50:56 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-07-31 00:43:49 +0200 |
commit | 80546ac4586c0bd326aa7ce80f076646db02bcd0 (patch) | |
tree | 58ae65a7cccbfb9c5742241f4523f76d6045cf79 /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
parent | dfdb0d93e5bc351af5b286ae9c630d3cf869b810 (diff) |
selftests/bpf: Don't destroy failed link
Check that link is NULL or proper pointer before invoking bpf_link__destroy().
Not doing this causes crash in test_progs, when cg_storage_multi selftest
fails.
Fixes: 3573f384014f ("selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress")
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions