From ebd99341e9926ed1d8e4fbe65546f363875355b3 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 5 Jan 2008 14:53:38 +0000 Subject: [PATCH] Fixed a copy&paste error. scsi_cmd_rw_10 has only a 16 bit length field, while scsi_cmd_rw_12 has a 32 bit field. As both are big endian, that error shouldn't have caused any problem or data corruption. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23254 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp index c08cd25f2c..4f68cfba16 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp @@ -714,7 +714,7 @@ AHCIPort::ScsiExecuteRequest(scsi_ccb *request) case SCSI_OP_READ_12: case SCSI_OP_WRITE_12: { - scsi_cmd_rw_10 *cmd = (scsi_cmd_rw_10 *)request->cdb; + scsi_cmd_rw_12 *cmd = (scsi_cmd_rw_12 *)request->cdb; uint32 position = B_BENDIAN_TO_HOST_INT32(cmd->lba); size_t length = B_BENDIAN_TO_HOST_INT32(cmd->length); bool isWrite = request->cdb[0] == SCSI_OP_WRITE_12;