File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3740,7 +3740,7 @@ ClassIoComplete(
37403740 PSCSI_REQUEST_BLOCK srb = Context;
37413741 PFUNCTIONAL_DEVICE_EXTENSION fdoExtension = Fdo->DeviceExtension;
37423742 PCLASS_PRIVATE_FDO_DATA fdoData = fdoExtension->PrivateFdoData;
3743- NTSTATUS status;
3743+ NTSTATUS status = STATUS_SUCCESS ;
37443744 BOOLEAN retry;
37453745 BOOLEAN callStartNextPacket;
37463746 ULONG srbFlags;
@@ -6055,15 +6055,15 @@ ClassInterpretSenseInfo(
60556055 logErrorInternal = FALSE;
60566056 logError = FALSE;
60576057 } else if (cdbOpcode == SCSIOP_MODE_SENSE10) {
6058- USHORT allocationLength;
6058+ USHORT allocationLength = 0 ;
60596059 REVERSE_BYTES_SHORT(&(cdb->MODE_SENSE10.AllocationLength), &allocationLength);
60606060 if (SrbGetDataTransferLength(Srb) <= allocationLength) {
60616061 *Status = STATUS_SUCCESS;
60626062 logErrorInternal = FALSE;
60636063 logError = FALSE;
60646064 }
60656065 } else if (ClasspIsReceiveTokenInformation(cdb)) {
6066- ULONG allocationLength;
6066+ ULONG allocationLength = 0 ;
60676067 REVERSE_BYTES(&(cdb->RECEIVE_TOKEN_INFORMATION.AllocationLength), &allocationLength);
60686068 if (SrbGetDataTransferLength(Srb) <= allocationLength) {
60696069 *Status = STATUS_SUCCESS;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ ClassIoCompleteAssociated(
119119 PIRP originalIrp = Irp -> AssociatedIrp .MasterIrp ;
120120 LONG irpCount ;
121121
122- NTSTATUS status ;
122+ NTSTATUS status = STATUS_SUCCESS ;
123123 BOOLEAN retry ;
124124
125125 TracePrint ((TRACE_LEVEL_WARNING , TRACE_FLAG_GENERAL , "ClassIoCompleteAssociated is OBSOLETE !" ));
@@ -390,8 +390,8 @@ RetryRequest(
390390 //
391391
392392 NT_ASSERT (SrbGetDataBuffer (srbHeader ) == MmGetMdlVirtualAddress (Irp -> MdlAddress ));
393- _Analysis_assume_ (Irp -> MdlAddress -> ByteCount <= dataTransferLength );
394- transferByteCount = Irp -> MdlAddress -> ByteCount ;
393+ _Analysis_assume_ (MmGetMdlByteCount ( Irp -> MdlAddress ) <= dataTransferLength );
394+ transferByteCount = MmGetMdlByteCount ( Irp -> MdlAddress ) ;
395395
396396 } else {
397397
Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ Return Value:
707707 mediaTypes -> MediaInfoCount = 1 ;
708708
709709 mediaInfo -> DeviceSpecific .DiskInfo .Cylinders .QuadPart = fdoExtension -> DiskGeometry .Cylinders .QuadPart ;
710- mediaInfo -> DeviceSpecific .DiskInfo .MediaType = FixedMedia ;
710+ mediaInfo -> DeviceSpecific .DiskInfo .MediaType = ( STORAGE_MEDIA_TYPE ) FixedMedia ;
711711 mediaInfo -> DeviceSpecific .DiskInfo .TracksPerCylinder = fdoExtension -> DiskGeometry .TracksPerCylinder ;
712712 mediaInfo -> DeviceSpecific .DiskInfo .SectorsPerTrack = fdoExtension -> DiskGeometry .SectorsPerTrack ;
713713 mediaInfo -> DeviceSpecific .DiskInfo .BytesPerSector = fdoExtension -> DiskGeometry .BytesPerSector ;
@@ -899,7 +899,7 @@ Return Value:
899899 mediaTypes -> MediaInfoCount = 1 ;
900900
901901 mediaInfo -> DeviceSpecific .RemovableDiskInfo .Cylinders .QuadPart = fdoExtension -> DiskGeometry .Cylinders .QuadPart ;
902- mediaInfo -> DeviceSpecific .RemovableDiskInfo .MediaType = RemovableMedia ;
902+ mediaInfo -> DeviceSpecific .RemovableDiskInfo .MediaType = ( STORAGE_MEDIA_TYPE ) RemovableMedia ;
903903 mediaInfo -> DeviceSpecific .RemovableDiskInfo .TracksPerCylinder = fdoExtension -> DiskGeometry .TracksPerCylinder ;
904904 mediaInfo -> DeviceSpecific .RemovableDiskInfo .SectorsPerTrack = fdoExtension -> DiskGeometry .SectorsPerTrack ;
905905 mediaInfo -> DeviceSpecific .RemovableDiskInfo .BytesPerSector = fdoExtension -> DiskGeometry .BytesPerSector ;
Original file line number Diff line number Diff line change @@ -1739,7 +1739,7 @@ DiskInfoExceptionComplete(
17391739 //
17401740 // Reset byte count of transfer in SRB Extension.
17411741 //
1742- srbEx -> DataTransferLength = Irp -> MdlAddress -> ByteCount ;
1742+ srbEx -> DataTransferLength = MmGetMdlByteCount ( Irp -> MdlAddress ) ;
17431743
17441744 //
17451745 // Zero SRB statuses.
@@ -1768,7 +1768,7 @@ DiskInfoExceptionComplete(
17681768 //
17691769 // Reset byte count of transfer in SRB Extension.
17701770 //
1771- srb -> DataTransferLength = Irp -> MdlAddress -> ByteCount ;
1771+ srb -> DataTransferLength = MmGetMdlByteCount ( Irp -> MdlAddress ) ;
17721772
17731773 //
17741774 // Zero SRB statuses.
Original file line number Diff line number Diff line change @@ -36,18 +36,11 @@ lsi_u3.sys = 1
3636[DestinationDirs]
3737DefaultDestDir = 12 ; DIRID_DRIVERS
3838
39+ ; Use NT$ARCH$ for platform-specific stamping via Stampinf
3940[Manufacturer]
40- %LSI%=LSI,NTamd64,NTia64,NTarm64
41+ %LSI%=LSI,NT$ARCH$
4142
42- [LSI.NTamd64]
43- %DevDesc1% = LSI_U3_Inst, PCI\VEN_1000&DEV_0020
44- %DevDesc2% = LSI_U3_Inst, PCI\VEN_1000&DEV_0021
45-
46- [LSI.NTia64]
47- %DevDesc1% = LSI_U3_Inst, PCI\VEN_1000&DEV_0020
48- %DevDesc2% = LSI_U3_Inst, PCI\VEN_1000&DEV_0021
49-
50- [LSI.NTarm64]
43+ [LSI.NT$ARCH$]
5144%DevDesc1% = LSI_U3_Inst, PCI\VEN_1000&DEV_0020
5245%DevDesc2% = LSI_U3_Inst, PCI\VEN_1000&DEV_0021
5346
You can’t perform that action at this time.
0 commit comments