summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/cam/cam_xpt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 38f97cd..7adfa2d 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -1446,7 +1446,11 @@ xpt_init(dummy)
devq);
xpt_max_ccbs = 16;
- xpt_bus_register(xpt_sim, /*bus #*/0);
+ if ((status = xpt_bus_register(xpt_sim, /*bus #*/0)) != CAM_SUCCESS) {
+ printf("xpt_init: xpt_bus_register failed with status %#x,";
+ " failing attach\n", status);
+ return;
+ }
/*
* Looking at the XPT from the SIM layer, the XPT is
OpenPOWER on IntegriCloud