avoid use after free

Submitted by:	gibbs
Reviewed by:	mdodd
Noticed by:	Coverity Prevent analysis tool
This commit is contained in:
Sam Leffler 2005-03-31 21:42:49 +00:00
parent 2c87b2b73f
commit ec04feb21b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144429

View File

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