diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/vmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 5b1387c7f..8e1aa523b 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -201,7 +201,7 @@ void * vmalloc_prot(unsigned long size, pgprot_t prot) if (!area) return NULL; addr = area->addr; - if (vmalloc_area_pages(VMALLOC_VMADDR(addr), size, PAGE_KERNEL)) { + if (vmalloc_area_pages(VMALLOC_VMADDR(addr), size, prot)) { vfree(addr); return NULL; } |