If on sense request device returns no sence, give up and return,
or we may loop forever.
This commit is contained in:
mav 2009-09-22 22:23:52 +00:00
parent d58971bf9a
commit d9e3a566ae

View File

@ -1034,8 +1034,13 @@ camperiphdone(struct cam_periph *periph, union ccb *done_ccb)
cam_error_print(saved_ccb, CAM_ESF_ALL,
CAM_EPF_ALL);
#endif
xpt_done_ccb = TRUE;
} else {
saved_ccb->ccb_h.status &=
~CAM_STATUS_MASK;
saved_ccb->ccb_h.status |=
CAM_AUTOSENSE_FAIL;
}
xpt_done_ccb = TRUE;
}
}
bcopy(done_ccb->ccb_h.saved_ccb_ptr, done_ccb,