avoid use after free

Submitted by:	gibbs
Reviewed by:	mdodd
Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
sam 2005-03-31 21:42:49 +00:00
parent dcd6a980fe
commit 3980911ee4

View File

@ -5379,8 +5379,8 @@ xpt_scan_bus(struct cam_periph *periph, union ccb *request_ccb)
free(scan_info, M_TEMP);
request_ccb->ccb_h.status = CAM_REQ_CMP;
xpt_done(request_ccb);
break;
}
break;
}
xpt_setup_ccb(&request_ccb->ccb_h, path,
request_ccb->ccb_h.pinfo.priority);