[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 04/17] scsi: fixup lba calculation for 6 byte CDBs
From: |
Hannes Reinecke |
Subject: |
[Qemu-devel] [PATCH 04/17] scsi: fixup lba calculation for 6 byte CDBs |
Date: |
Wed, 29 Oct 2014 08:53:39 +0100 |
6 byte CDBs do not have a dedicated area for LBAs, and even if
it certainly won't be at byte 0.
Signed-off-by: Hannes Reinecke <address@hidden>
---
hw/scsi/scsi-bus.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c
index 919a86c..64d0880 100644
--- a/hw/scsi/scsi-bus.c
+++ b/hw/scsi/scsi-bus.c
@@ -1195,9 +1195,6 @@ static uint64_t scsi_cmd_lba(SCSICommand *cmd)
uint64_t lba;
switch (buf[0] >> 5) {
- case 0:
- lba = ldl_be_p(&buf[0]) & 0x1fffff;
- break;
case 1:
case 2:
case 5:
--
1.8.4.5
[Qemu-devel] [PATCH 06/17] megasas: fixup MFI_DCMD_LD_LIST_QUERY, Hannes Reinecke, 2014/10/29
[Qemu-devel] [PATCH 16/17] megasas: Rework frame queueing algorithm, Hannes Reinecke, 2014/10/29