From: Bernhard Kohl Date: Mon, 6 Sep 2010 14:58:44 +0000 (+0200) Subject: scsi_bus: fix length and xfer_mode for RESERVE and RELEASE commands X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a5e3d9ef4dcca9b709999a98f6b37b9506c93ad3;p=qemu.git 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. Signed-off-by: Bernhard Kohl Signed-off-by: Kevin Wolf --- diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index 7aa0bcd1ee..5a3fd4b7ac 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -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: