>From b1cf55a481d2cbcd3beb93360dcb7b53a24d743d Mon Sep 17 00:00:00 2001
From: Vadim Rozenfeld <vroze...@redhat.com>
Date: Mon, 2 May 2011 21:13:11 +0300
Subject: [COMMIT] [balloon] use wdk macro for obtaining PFN associated
with  MDL.

---
 Balloon/sys/balloon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Balloon/sys/balloon.c b/Balloon/sys/balloon.c
index 177d74b..39ad3bc 100644
--- a/Balloon/sys/balloon.c
+++ b/Balloon/sys/balloon.c
@@ -190,7 +190,7 @@ BalloonFill(
         }
  
         pNewPageListEntry->PageMdl = pPageMdl;
-        pNewPageListEntry->PagePfn =
drvCtx->pfns_table[drvCtx->num_pfns] = *(PPFN_NUMBER)(pPageMdl + 1);
+        pNewPageListEntry->PagePfn =
drvCtx->pfns_table[drvCtx->num_pfns] = *MmGetMdlPfnArray(pPageMdl);
  
         WdfSpinLockAcquire(drvCtx->SpinLock);
         PushEntryList(&drvCtx->PageListHead,
&(pNewPageListEntry->SingleListEntry));
-- 
1.7.0.2.msysgit.0



--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to