Skip to contentSkip to conversation

scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

PATCH Applied Bernhard Kohl 2 participants 2 messages Sep 6, 2010 – Sep 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands

For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE.

---
 hw/scsi-bus.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
hw/scsi-bus.c +2 -1
index 7aa0bcd..5a3fd4b 100644
@@ -208,6 +208,8 @@ static int scsi_req_length(SCSIRequest *req, uint8_t *cmd)
     case SEEK_6:
     case WRITE_FILEMARKS:
     case SPACE:
+    case RESERVE:
+    case RELEASE:
     case ERASE:
     case ALLOW_MEDIUM_REMOVAL:
     case VERIFY:
@@ -319,7 +321,6 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
     case WRITE_BUFFER:
     case FORMAT_UNIT:
     case REASSIGN_BLOCKS:
-    case RESERVE:
     case SEARCH_EQUAL:
     case SEARCH_HIGH:
     case SEARCH_LOW:
Signature · 1 line
1.7.2.2
Applied
#1 lore raw

Am 06.09.2010 16:58, schrieb Bernhard Kohl:

Quoted 4 lines

For the RESERVE and RELEASE commands the length must be zero and xfer_mode must be SCSI_XFER_NONE.

Thanks, applied to the block branch.

Kevin