mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 09:00:28 +00:00
Pay attention to return value from xpt_bus_register in xpt_init.
Obtained from: Xin Li (Coverity) MFC after: 3 days
This commit is contained in:
parent
5288989fac
commit
df82698084
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165448
|
@ -1446,7 +1446,11 @@ xpt_init(dummy)
|
||||||
devq);
|
devq);
|
||||||
xpt_max_ccbs = 16;
|
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
|
* Looking at the XPT from the SIM layer, the XPT is
|
||||||
|
|
Loading…
Reference in a new issue