linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / mm / vmalloc.c
index c0504f1..729eb3e 100644 (file)
@@ -321,7 +321,8 @@ void __vunmap(void *addr, int deallocate_pages)
                int i;
 
                for (i = 0; i < area->nr_pages; i++) {
-                       BUG_ON(!area->pages[i]);
+                       if (unlikely(!area->pages[i]))
+                               BUG();
                        __free_page(area->pages[i]);
                }