Skip to content

Commit

Permalink
viomem: Fix wrong ExAllocatePoolZero arguments
Browse files Browse the repository at this point in the history
Resolve: https://issues.redhat.com/browse/RHEL-30690

Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 authored and YanVugenfirer committed Apr 3, 2024
1 parent bc4dec6 commit b9a770f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viomem/sys/viomem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,7 @@ VOID ViomemWorkerThread(

ULONG bitmapSizeInBits = (ULONG)(configReqest.region_size / configReqest.block_size);

devCtx->bitmapBuffer = (ULONG*)ExAllocatePoolZero(POOL_FLAG_NON_PAGED,
devCtx->bitmapBuffer = (ULONG*)ExAllocatePoolZero(NonPagedPool,
bitmapSizeInBits >> 3,
VIRTIO_MEM_POOL_TAG);

Expand Down

0 comments on commit b9a770f

Please sign in to comment.