[SCSIPORT]
authorJérôme Gardou <jerome.gardou@reactos.org>
Wed, 5 Feb 2014 21:33:14 +0000 (21:33 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Wed, 5 Feb 2014 21:33:14 +0000 (21:33 +0000)
 - Do not pass NULL adapter to IoMapTransfer

svn path=/trunk/; revision=62000

reactos/drivers/storage/scsiport/scsiport.c

index d67d136..5c69662 100644 (file)
@@ -3286,7 +3286,7 @@ SpiAdapterControl(PDEVICE_OBJECT DeviceObject,
             break;
 
         ScatterGatherList->Length = Srb->DataTransferLength - TotalLength;
-        ScatterGatherList->PhysicalAddress = IoMapTransfer(NULL,
+        ScatterGatherList->PhysicalAddress = IoMapTransfer(DeviceExtension->AdapterObject,
                                                            Irp->MdlAddress,
                                                            MapRegisterBase,
                                                            DataVA + TotalLength,