avoid use after free
Submitted by: gibbs Reviewed by: mdodd Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
2c87b2b73f
commit
ec04feb21b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144429
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user