diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 7ef0903058ee..5016f19e1661 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -2140,6 +2140,14 @@ struct vm_struct *alloc_vm_area(size_t size) | |||
2140 | return NULL; | 2140 | return NULL; |
2141 | } | 2141 | } |
2142 | 2142 | ||
2143 | /* | ||
2144 | * If the allocated address space is passed to a hypercall | ||
2145 | * before being used then we cannot rely on a page fault to | ||
2146 | * trigger an update of the page tables. So sync all the page | ||
2147 | * tables here. | ||
2148 | */ | ||
2149 | vmalloc_sync_all(); | ||
2150 | |||
2143 | return area; | 2151 | return area; |
2144 | } | 2152 | } |
2145 | EXPORT_SYMBOL_GPL(alloc_vm_area); | 2153 | EXPORT_SYMBOL_GPL(alloc_vm_area); |