diff options
Diffstat (limited to 'linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c')
-rw-r--r-- | linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c index 2971bc5087..bf717a8632 100644 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c @@ -211,11 +211,11 @@ static void balloon_process(void *unused) /* Link back into the page tables if it's not a highmem page. */ if ( pfn < max_low_pfn ) { - HYPERVISOR_update_va_mapping( + BUG_ON(HYPERVISOR_update_va_mapping( (unsigned long)__va(pfn << PAGE_SHIFT), __pte_ma((mfn_list[i] << PAGE_SHIFT) | pgprot_val(PAGE_KERNEL)), - 0); + 0)); } /* Finally, relinquish the memory back to the system allocator. */ @@ -249,8 +249,8 @@ static void balloon_process(void *unused) { v = phys_to_virt(pfn << PAGE_SHIFT); scrub_pages(v, 1); - HYPERVISOR_update_va_mapping( - (unsigned long)v, __pte_ma(0), 0); + BUG_ON(HYPERVISOR_update_va_mapping( + (unsigned long)v, __pte_ma(0), 0)); } #ifdef CONFIG_XEN_SCRUB_PAGES else |