Skip to content

Commit 5ae5949

Browse files
authored
Merge branch 'develop' into main
2 parents efe9205 + 65bdf7d commit 5ae5949

File tree

8 files changed

+17
-23
lines changed

8 files changed

+17
-23
lines changed

.github/workflows/Code-Scanning.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
run: nuget restore .\packages.config -PackagesDirectory .\packages\
4949
- name: Get changed files
5050
id: get-changed-files
51-
uses: tj-actions/changed-files@v46
51+
uses: tj-actions/changed-files@v41
5252
with:
5353
separator: ","
5454
- name: Initialize CodeQL

exclusions.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ spb\spbtesttool,*,,26100,"failure introduced in VS17.14, suppressed until fix"
1010
general\pcidrv,*,,26100,"failure introduced in VS17.14, suppressed until fix"
1111
serial\serial,*,,26100,"failure introduced in VS17.14, suppressed until fix"
1212
network\wlan\wdi,*,,26100,"failure introduced in VS17.14, suppressed until fix"
13-
tools\kasan\samples\kasandemo-wdm,*|x64,,26100,"failure introduced in VS17.14, suppressed until fix"
13+
tools\kasan\samples\kasandemo-wdm,*|x64,,26100,"failure introduced in VS17.14, suppressed until fix"
14+

filesys/miniFilter/avscan/filter/avscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,7 @@ Return Value:
22772277

22782278
if ( transactionContext ) { // case 3
22792279

2280-
FltReferenceContext( transactionContext );
2280+
FltReferenceContext( StreamContext );
22812281

22822282
AvAcquireResourceExclusive( transactionContext->Resource );
22832283

storage/class/classpnp/src/class.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

storage/class/classpnp/src/obsolete.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

storage/class/disk/src/disk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

storage/class/disk/src/diskwmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

storage/miniports/lsi_u3/src/lsi_u3.inf

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,11 @@ lsi_u3.sys = 1
3636
[DestinationDirs]
3737
DefaultDestDir = 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

0 commit comments

Comments
 (0)