commit | 34754b69a6f87aa6aa2860525a82f12532f83afd | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | Wed Feb 25 16:04:03 2009 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Wed Feb 25 16:38:34 2009 +0100 |
tree | 2f5234670238c3cf1139d09545fd25140f49c003 | |
parent | 95108fa34a83ffd97e0af959e4b28d7c62008781 [diff] [blame] |
x86: make vmap yell louder when it is used under irqs_disabled() Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 4dd2636..f83a701 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c
@@ -1257,6 +1257,7 @@ void vunmap(const void *addr) { BUG_ON(in_interrupt()); + might_sleep(); __vunmap(addr, 0); } EXPORT_SYMBOL(vunmap); @@ -1276,6 +1277,8 @@ { struct vm_struct *area; + might_sleep(); + if (count > num_physpages) return NULL;