xenbus: don't BUG() on user mode induced condition
[pandora-kernel.git] / lib / show_mem.c
index 90cbe4b..b7c7231 100644 (file)
@@ -16,7 +16,10 @@ void show_mem(unsigned int filter)
                nonshared = 0, highmem = 0;
 
        printk("Mem-Info:\n");
-       __show_free_areas(filter);
+       show_free_areas(filter);
+
+       if (filter & SHOW_MEM_FILTER_PAGE_COUNT)
+               return;
 
        for_each_online_pgdat(pgdat) {
                unsigned long i, flags;