[PATCH openEuler-5.10 051/161] bpf, test: fix NULL pointer dereference on invalid expected_attach_type