Skip to contentSkip to conversation

[PATCH Balloon]

PATCH New Konrad Rzeszutek Wilk 1 participant 2 messages Dec 22, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [PATCH Balloon]

Please apply the following compile patch to origin/xen/hugepage-balloon branch.

#1 lore raw

PATCH 1/1 Fix compiler warning.

drivers/xen/balloon.c: In function ‘decrease_reservation’:
drivers/xen/balloon.c:300: warning: ‘page’ may be used uninitialized in this function

---
 drivers/xen/balloon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/xen/balloon.c +1 -1
index 9049806..13101c6 100644
@@ -297,7 +297,7 @@ static int increase_reservation(unsigned long nr_pages)
 static int decrease_reservation(unsigned long nr_pages)
 {
 	unsigned long  pfn, lpfn, mfn, i, j, flags;
-	struct page   *page;
+	struct page   *page = NULL;
 	int            need_sleep = 0;
 	int		discontig, discontig_free;
 	int		ret;
Signature · 1 line
1.6.2.5