x86: make vmap yell louder when it is used under irqs_disabled()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
95108fa34a
commit
34754b69a6
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user