Hao Luo 95cec14b03 selftests/bpf: Fix check in global_data_init.
The returned value of bpf_object__open_file() should be checked with
libbpf_get_error() rather than NULL. This fix prevents test_progs from
crash when test_global_data.o is not present.

Signed-off-by: Hao Luo <haoluo@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200903200528.747884-1-haoluo@google.com
2020-09-03 17:33:31 -07:00
..
2020-04-03 13:12:26 -07:00
2020-08-05 10:28:25 -07:00
2020-06-17 00:07:38 +02:00
2020-06-29 10:02:23 +02:00
2020-08-05 11:52:17 -07:00
2020-08-07 11:33:27 -07:00
2020-08-05 10:28:25 -07:00
2020-04-03 13:12:26 -07:00
2020-06-09 10:03:12 -07:00
2020-04-03 13:12:26 -07:00
2020-08-05 10:28:25 -07:00
2020-07-07 14:11:31 -06:00
2020-08-07 11:33:27 -07:00