avoid use after free
Submitted by: gibbs Reviewed by: mdodd Noticed by: Coverity Prevent analysis tool
This commit is contained in:
parent
dcd6a980fe
commit
3980911ee4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user