[USBSTOR]

- Fix attempt #2  the offset bug
- fix identation

svn path=/branches/usb-bringup-trunk/; revision=55089
This commit is contained in:
Johannes Anderwald 2012-01-23 02:58:52 +00:00
parent 8baf90438a
commit 99926db97d

View file

@ -589,6 +589,10 @@ USBSTOR_SendRequest(
if (CommandLength == UFI_READ_WRITE_CMD_LEN)
{
MdlVirtualAddress = MmGetMdlVirtualAddress(OriginalRequest->MdlAddress);
//
// is there an offset
//
if (MdlVirtualAddress != Context->TransferData)
{
//
@ -610,11 +614,14 @@ USBSTOR_SendRequest(
}
}
if (!Context->TransferBufferMDL)
{
//
// I/O paging request
//
Context->TransferBufferMDL = OriginalRequest->MdlAddress;
}
}
else
{
//