Fix a bug of ScsiWrite10Command() UefiScsiLib. After the SCSI WRITE command is execut...
[people/mcb30/edk2.git] / edk2 / MdePkg / Library / UefiScsiLib / UefiScsiLib.c
index 6bfc8cf..83b4099 100644 (file)
@@ -627,7 +627,7 @@ ScsiWrite10Command (
   *HostAdapterStatus            = CommandPacket.HostAdapterStatus;\r
   *TargetStatus                 = CommandPacket.TargetStatus;\r
   *SenseDataLength              = CommandPacket.SenseDataLength;\r
-  *DataLength                   = CommandPacket.InTransferLength;\r
+  *DataLength                   = CommandPacket.OutTransferLength;\r
 \r
   return Status;\r
 }\r