summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-02-26 12:31:16 +0000
committermav <mav@FreeBSD.org>2010-02-26 12:31:16 +0000
commit0c57ffc7c18dc3a29c71e8edc8fe9f366ab73c03 (patch)
treeadc7da7420846da8cda1718c99ba90887b3e9066
parent14768b6db6ce7053b5a6fa012edeab9cbbb977a0 (diff)
downloadFreeBSD-src-0c57ffc7c18dc3a29c71e8edc8fe9f366ab73c03.zip
FreeBSD-src-0c57ffc7c18dc3a29c71e8edc8fe9f366ab73c03.tar.gz
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.
-rw-r--r--sys/dev/mpt/mpt_raid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/mpt/mpt_raid.c b/sys/dev/mpt/mpt_raid.c
index 7d075e3..9e90dd3 100644
--- a/sys/dev/mpt/mpt_raid.c
+++ b/sys/dev/mpt/mpt_raid.c
@@ -690,7 +690,6 @@ mpt_raid_thread(void *arg)
if (mpt->raid_rescan != 0) {
union ccb *ccb;
- struct cam_path *path;
int error;
mpt->raid_rescan = 0;
@@ -699,7 +698,7 @@ mpt_raid_thread(void *arg)
ccb = xpt_alloc_ccb();
MPT_LOCK(mpt);
- error = xpt_create_path(&path, xpt_periph,
+ error = xpt_create_path(&ccb->ccb_h.path, xpt_periph,
cam_sim_path(mpt->phydisk_sim),
CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD);
if (error != CAM_REQ_CMP) {
OpenPOWER on IntegriCloud