[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] Match __FreePage with __AllocatePage calls


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Mon, 14 Jun 2021 10:01:23 +0100
  • Delivery-date: Mon, 14 Jun 2021 09:01:29 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 14/06/2021 09:50, Owen Smith wrote:
Replace __FreePages with __FreePage when the memory was allocated with
__AllocatePage. This is a cosmetic change, as __FreePage is an alias for
__FreePages

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Acked-by: Paul Durrant <paul@xxxxxxx>

---
  src/xenvbd/adapter.c | 2 +-
  src/xenvbd/ring.c    | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xenvbd/adapter.c b/src/xenvbd/adapter.c
index 67dd14c..9fd2abc 100644
--- a/src/xenvbd/adapter.c
+++ b/src/xenvbd/adapter.c
@@ -1166,7 +1166,7 @@ AdapterBounceDtor(
Bounce->BouncePtr = NULL; - __FreePages(Bounce->BounceMdl);
+    __FreePage(Bounce->BounceMdl);
      Bounce->BounceMdl = NULL;
  }
diff --git a/src/xenvbd/ring.c b/src/xenvbd/ring.c
index bfe62a8..66e8cdd 100644
--- a/src/xenvbd/ring.c
+++ b/src/xenvbd/ring.c
@@ -494,7 +494,7 @@ BlkifRingIndirectDtor(
UNREFERENCED_PARAMETER(Argument); - __FreePages(Indirect->Mdl);
+    __FreePage(Indirect->Mdl);
      Indirect->Page = NULL;
      Indirect->Mdl = NULL;
  }





 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.