mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Store path for rescan to the right place. This should fix panic on boot,
introduced by r203108.
This commit is contained in:
parent
38ea91022c
commit
2dc59e87e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204356
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user