st/prober: Quit without crashing if no driver is available

This commit is contained in:
Gabriele Boccone 2023-10-19 11:16:58 +02:00 committed by Jakob Bornecrantz
parent e221f836a8
commit b500272c0b

View file

@ -1068,11 +1068,14 @@ p_create_system(struct xrt_prober *xp, struct xrt_system_devices **out_xsysd, st
if (xret == XRT_SUCCESS) {
print_system_devices(dg, *out_xsysd);
}
u_pp(dg, "\n\tResult: ");
u_pp_xrt_result(dg, xret);
} else {
u_pp(dg, "\n\tNo builder can be used to create a head device");
xret = XRT_ERROR_DEVICE_CREATION_FAILED;
}
u_pp(dg, "\n\tResult: ");
u_pp_xrt_result(dg, xret);
P_INFO(p, "%s", sink.buffer);
return xret;