mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UsbMass: Fix USB key write failure
Commit e59db6a732
* MdeModulePkg/UsbMass: Merge UsbBoot(Read|Write)Blocks(16)
introduces a bug that causes writing to USB key always fails.
When that patch is verified, only reading was verified.
The root cause is when the writing operation is performed,
the data direction EfiUsbDataIn is wrongly used. Instead, it
should be EfiUsbDataOut.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
90c64aada8
commit
a58a421c36
|
@ -861,7 +861,7 @@ UsbBootReadWriteBlocks (
|
|||
UsbMass,
|
||||
&Cmd,
|
||||
(UINT8) sizeof (USB_BOOT_READ_WRITE_10_CMD),
|
||||
EfiUsbDataIn,
|
||||
Write ? EfiUsbDataOut : EfiUsbDataIn,
|
||||
Buffer,
|
||||
ByteSize,
|
||||
Timeout
|
||||
|
@ -941,7 +941,7 @@ UsbBootReadWriteBlocks16 (
|
|||
UsbMass,
|
||||
Cmd,
|
||||
(UINT8) sizeof (Cmd),
|
||||
EfiUsbDataIn,
|
||||
Write ? EfiUsbDataOut : EfiUsbDataIn,
|
||||
Buffer,
|
||||
ByteSize,
|
||||
Timeout
|
||||
|
|
Loading…
Reference in New Issue