]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - kernel/module.c
mm: remove the pgprot argument to __vmalloc
[thirdparty/linux.git] / kernel / module.c
index 646f1e2330d2bdd9e3e82f62faff410d7d8ff37e..086618a0058f4d769c21a75e85024ff071ae2cee 100644 (file)
@@ -2946,8 +2946,7 @@ static int copy_module_from_user(const void __user *umod, unsigned long len,
                return err;
 
        /* Suck in entire file: we'll want most of it. */
-       info->hdr = __vmalloc(info->len,
-                       GFP_KERNEL | __GFP_NOWARN, PAGE_KERNEL);
+       info->hdr = __vmalloc(info->len, GFP_KERNEL | __GFP_NOWARN);
        if (!info->hdr)
                return -ENOMEM;