diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 520a75980269..11a929872ebd 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1267,6 +1267,7 @@ EXPORT_SYMBOL(vfree); | |||
1267 | void vunmap(const void *addr) | 1267 | void vunmap(const void *addr) |
1268 | { | 1268 | { |
1269 | BUG_ON(in_interrupt()); | 1269 | BUG_ON(in_interrupt()); |
1270 | might_sleep(); | ||
1270 | __vunmap(addr, 0); | 1271 | __vunmap(addr, 0); |
1271 | } | 1272 | } |
1272 | EXPORT_SYMBOL(vunmap); | 1273 | EXPORT_SYMBOL(vunmap); |
@@ -1286,6 +1287,8 @@ void *vmap(struct page **pages, unsigned int count, | |||
1286 | { | 1287 | { |
1287 | struct vm_struct *area; | 1288 | struct vm_struct *area; |
1288 | 1289 | ||
1290 | might_sleep(); | ||
1291 | |||
1289 | if (count > num_physpages) | 1292 | if (count > num_physpages) |
1290 | return NULL; | 1293 | return NULL; |
1291 | 1294 | ||