[PATCH openEuler-22.09 v3 188/391] libbpf: Add NULL check to add_dummy_ksym_var