Skip to content

Commit

Permalink
xdpmp: use correct alignment macro for type (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfriesen authored Nov 11, 2024
1 parent e9d1d19 commit db27316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/xdpmp/miniport.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ MpInitialize(
}

Adapter->MdlSize = (UINT32)MmSizeOfMdl((VOID *)(PAGE_SIZE - 1), Adapter->RxBufferLength);
Adapter->MdlSize = ALIGN_UP(Adapter->MdlSize, MEMORY_ALLOCATION_ALIGNMENT);
Adapter->MdlSize = ALIGN_UP_BY(Adapter->MdlSize, MEMORY_ALLOCATION_ALIGNMENT);
if (Adapter->MdlSize > MAXUSHORT) {
TraceError(
TRACE_CONTROL, "NdisMiniportHandle=%p Error: MdlSize too large MdlSize=%lu",
Expand Down

0 comments on commit db27316

Please sign in to comment.