From ba7e162ec1407988cfe305b15499e9b2fd9c51ef Mon Sep 17 00:00:00 2001 From: xli24 Date: Fri, 28 Sep 2007 05:59:12 +0000 Subject: 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 --- MdePkg/Library/UefiScsiLib/UefiScsiLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdePkg') diff --git a/MdePkg/Library/UefiScsiLib/UefiScsiLib.c b/MdePkg/Library/UefiScsiLib/UefiScsiLib.c index 6bfc8cfc35..83b4099ea2 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; } -- cgit v1.2.3