Skip to contentSkip to conversation

x86: propagate return value of alloc_l1_table()

PATCH New Jan Beulich 1 participant 1 message Oct 13, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: propagate return value of alloc_l1_table()

A blatant mistake of mine resulted in the return value of alloc_l1_table to be ignored with the preemptable page table update changes.

xen/arch/x86/mm.c +1 -2
Index: 2008-09-19/xen/arch/x86/mm.c
===================================================================
@@ -1883,8 +1883,7 @@ static int alloc_page_type(struct page_i
     switch ( type & PGT_type_mask )
     {
     case PGT_l1_page_table:
-        alloc_l1_table(page);
-        rc = 0;
+        rc = alloc_l1_table(page);
         break;
     case PGT_l2_page_table:
         rc = alloc_l2_table(page, type, preemptible);