mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- Fix the size passed to RtlZeroMemory so it also zeros the protocol reserved memory
svn path=/trunk/; revision=40671
This commit is contained in:
parent
9143e681e0
commit
61eca830d1
1 changed files with 3 additions and 3 deletions
|
@ -424,7 +424,7 @@ NdisAllocatePacket(
|
|||
|
||||
KeReleaseSpinLock(&Pool->SpinLock.SpinLock, OldIrql);
|
||||
|
||||
RtlZeroMemory(Temp, sizeof(NDIS_PACKET));
|
||||
RtlZeroMemory(Temp, Pool->PacketLength);
|
||||
Temp->Private.Pool = Pool;
|
||||
Temp->Private.ValidCounts = TRUE;
|
||||
Temp->Private.NdisPacketFlags = fPACKET_ALLOCATED_BY_NDIS;
|
||||
|
@ -707,7 +707,7 @@ NdisDprAllocatePacket(
|
|||
|
||||
KeReleaseSpinLockFromDpcLevel(&Pool->SpinLock.SpinLock);
|
||||
|
||||
RtlZeroMemory(Temp, sizeof(NDIS_PACKET));
|
||||
RtlZeroMemory(Temp, Pool->PacketLength);
|
||||
Temp->Private.Pool = Pool;
|
||||
Temp->Private.ValidCounts = TRUE;
|
||||
Temp->Private.NdisPacketFlags = fPACKET_ALLOCATED_BY_NDIS;
|
||||
|
@ -756,7 +756,7 @@ NdisDprAllocatePacketNonInterlocked(
|
|||
Temp = Pool->FreeList;
|
||||
Pool->FreeList = (PNDIS_PACKET)Temp->Reserved[0];
|
||||
|
||||
RtlZeroMemory(Temp, sizeof(NDIS_PACKET));
|
||||
RtlZeroMemory(Temp, Pool->PacketLength);
|
||||
Temp->Private.Pool = Pool;
|
||||
Temp->Private.ValidCounts = TRUE;
|
||||
Temp->Private.NdisPacketFlags = fPACKET_ALLOCATED_BY_NDIS;
|
||||
|
|
Loading…
Reference in a new issue