summaryrefslogtreecommitdiffstats
path: root/sys/dev/hpt27xx
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-04-14 09:55:48 +0000
committermav <mav@FreeBSD.org>2013-04-14 09:55:48 +0000
commit3d32e6b10c85bbbaea953937412778787bba3629 (patch)
treedf9949ed179b54ed307f0058d4d461e9e3179b33 /sys/dev/hpt27xx
parentf73c311ca37f75cf30157cd16614f936361e956b (diff)
downloadFreeBSD-src-3d32e6b10c85bbbaea953937412778787bba3629.zip
FreeBSD-src-3d32e6b10c85bbbaea953937412778787bba3629.tar.gz
MFprojects/camlock r248982:
Stop abusing xpt_periph in random plases that really have no periph related to CCB, for example, bus scanning. NULL value is fine in such cases and it is correctly logged in debug messages as "noperiph". If at some point we need some real XPT periphs (alike to pmpX now), quite likely they will be per-bus, and not a single global instance as xpt_periph now.
Diffstat (limited to 'sys/dev/hpt27xx')
-rw-r--r--sys/dev/hpt27xx/osm_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hpt27xx/osm_bsd.c b/sys/dev/hpt27xx/osm_bsd.c
index 9f4d1b9..59707ca 100644
--- a/sys/dev/hpt27xx/osm_bsd.c
+++ b/sys/dev/hpt27xx/osm_bsd.c
@@ -1347,7 +1347,7 @@ static int hpt_rescan_bus(void)
#endif
ldm_for_each_vbus(vbus, vbus_ext) {
- if (xpt_create_path(&path, xpt_periph, cam_sim_path(vbus_ext->sim),
+ if (xpt_create_path(&path, NULL, cam_sim_path(vbus_ext->sim),
CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP)
return(EIO);
if ((ccb = malloc(sizeof(union ccb), M_TEMP, M_WAITOK)) == NULL)
OpenPOWER on IntegriCloud