summaryrefslogtreecommitdiff
path: root/MdePkg/Library/UefiScsiLib
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-28 05:59:12 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-28 05:59:12 +0000
commitba7e162ec1407988cfe305b15499e9b2fd9c51ef (patch)
tree64c3c3abd169a54f288503589866ed882942beb8 /MdePkg/Library/UefiScsiLib
parentff62de37300f4c1af964367a9ea0fca0f79570e8 (diff)
downloadedk2-ba7e162ec1407988cfe305b15499e9b2fd9c51ef.zip
edk2-ba7e162ec1407988cfe305b15499e9b2fd9c51ef.tar.gz
edk2-ba7e162ec1407988cfe305b15499e9b2fd9c51ef.tar.bz2
Fix a bug of ScsiWrite10Command() UefiScsiLib. After the SCSI WRITE command is executed, the output DataLength parameter should be EFI_SCSI_IO_SCSI_REQUEST_PACKET.OutTransferLength, instead of EFI_SCSI_IO_SCSI_REQUEST_PACKET.InTransferLength.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3961 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiScsiLib')
-rw-r--r--MdePkg/Library/UefiScsiLib/UefiScsiLib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
index 6bfc8cf..83b4099 100644
--- a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
+++ b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c
@@ -627,7 +627,7 @@ ScsiWrite10Command (
*HostAdapterStatus = CommandPacket.HostAdapterStatus;
*TargetStatus = CommandPacket.TargetStatus;
*SenseDataLength = CommandPacket.SenseDataLength;
- *DataLength = CommandPacket.InTransferLength;
+ *DataLength = CommandPacket.OutTransferLength;
return Status;
}