diff options
Diffstat (limited to 'arch/um/os-Linux/main.c')
-rw-r--r-- | arch/um/os-Linux/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index fb510d40480c..e85f4995a011 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c | |||
@@ -235,8 +235,8 @@ void *__wrap_malloc(int size) | |||
235 | return __real_malloc(size); | 235 | return __real_malloc(size); |
236 | else if(size <= UM_KERN_PAGE_SIZE) | 236 | else if(size <= UM_KERN_PAGE_SIZE) |
237 | /* finding contiguous pages can be hard*/ | 237 | /* finding contiguous pages can be hard*/ |
238 | ret = um_kmalloc(size); | 238 | ret = kmalloc(size, UM_GFP_KERNEL); |
239 | else ret = um_vmalloc(size); | 239 | else ret = vmalloc(size); |
240 | 240 | ||
241 | /* glibc people insist that if malloc fails, errno should be | 241 | /* glibc people insist that if malloc fails, errno should be |
242 | * set by malloc as well. So we do. | 242 | * set by malloc as well. So we do. |