Skip to content

Commit

Permalink
remove uninitialized pool allocation (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen authored Jan 28, 2025
1 parent e3cca30 commit 84826e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xdp/xsk.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ XskAllocateTxBounceBuffer(
//
ASSERT(Bounce->AllocationSource == NotAllocated);
Bounce->Mapping.SystemAddress =
ExAllocatePoolUninitialized(NonPagedPoolNx, Xsk->Umem->Reg.TotalSize, POOLTAG_BOUNCE);
ExAllocatePoolZero(NonPagedPoolNx, Xsk->Umem->Reg.TotalSize, POOLTAG_BOUNCE);
if (Bounce->Mapping.SystemAddress == NULL) {
Status = STATUS_NO_MEMORY;
goto Exit;
Expand Down

0 comments on commit 84826e2

Please sign in to comment.