Skip to content

Instantly share code, notes, and snippets.

@ctuffli
Created March 5, 2012 22:41
Show Gist options
  • Save ctuffli/1981677 to your computer and use it in GitHub Desktop.
Save ctuffli/1981677 to your computer and use it in GitHub Desktop.
CTL not setting CAM_DIR_NONE
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c
index 1d547d5..e60d70e 100644
--- a/sys/cam/ctl/scsi_ctl.c
+++ b/sys/cam/ctl/scsi_ctl.c
@@ -729,7 +816,7 @@ ctlfestart(struct cam_periph *periph, union ccb *start_ccb)
/*
* We're done, send status back.
*/
- flags |= CAM_SEND_STATUS;
+ flags |= CAM_DIR_NONE | CAM_SEND_STATUS;
if (io == NULL) {
scsi_status = SCSI_STATUS_BUSY;
csio->sense_len = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment