aboutsummaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r--mm/vmalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 903cad46e796..7774c6328970 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1259,6 +1259,7 @@ EXPORT_SYMBOL(vfree);
1259void vunmap(const void *addr) 1259void vunmap(const void *addr)
1260{ 1260{
1261 BUG_ON(in_interrupt()); 1261 BUG_ON(in_interrupt());
1262 might_sleep();
1262 __vunmap(addr, 0); 1263 __vunmap(addr, 0);
1263} 1264}
1264EXPORT_SYMBOL(vunmap); 1265EXPORT_SYMBOL(vunmap);
@@ -1278,6 +1279,8 @@ void *vmap(struct page **pages, unsigned int count,
1278{ 1279{
1279 struct vm_struct *area; 1280 struct vm_struct *area;
1280 1281
1282 might_sleep();
1283
1281 if (count > num_physpages) 1284 if (count > num_physpages)
1282 return NULL; 1285 return NULL;
1283 1286