]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/vmalloc.c
x86: make vmap yell louder when it is used under irqs_disabled()
[linux-2.6-omap-h63xx.git] / mm / vmalloc.c
index 4dd2636d0b92664230f9d7fa8b439cea2802e34f..f83a70167b992209a0b991686baa4e7c8db5cd39 100644 (file)
@@ -1257,6 +1257,7 @@ EXPORT_SYMBOL(vfree);
 void vunmap(const void *addr)
 {
        BUG_ON(in_interrupt());
+       might_sleep();
        __vunmap(addr, 0);
 }
 EXPORT_SYMBOL(vunmap);
@@ -1276,6 +1277,8 @@ void *vmap(struct page **pages, unsigned int count,
 {
        struct vm_struct *area;
 
+       might_sleep();
+
        if (count > num_physpages)
                return NULL;