aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c
index 3ab942f78760..65bd206e04a9 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2494,7 +2494,8 @@ static int copy_module_from_user(const void __user *umod, unsigned long len,
2494 return err; 2494 return err;
2495 2495
2496 /* Suck in entire file: we'll want most of it. */ 2496 /* Suck in entire file: we'll want most of it. */
2497 info->hdr = vmalloc(info->len); 2497 info->hdr = __vmalloc(info->len,
2498 GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN, PAGE_KERNEL);
2498 if (!info->hdr) 2499 if (!info->hdr)
2499 return -ENOMEM; 2500 return -ENOMEM;
2500 2501