aboutsummaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-12-10 18:52:13 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-10 20:41:12 -0500
commitf7e1ad1a1e23af97419cd8d5adff67fedf7cf169 (patch)
tree78f4076ca86846e148f1c90bf6dd3ee86095dfa5 /fs/binfmt_misc.c
parente6084d4a086b626acb5cf97795a9243062c2f4cd (diff)
fs/binfmt_misc.c: use GFP_KERNEL instead of GFP_USER
GFP_USER means "honour cpuset nodes-allowed beancounting". These are regular old kernel objects and there seems no reason to give them this treatment. Acked-by: Mike Frysinger <vapier@gentoo.org> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 01a2cd9ab2bf..70789e198dea 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -308,7 +308,7 @@ static Node *create_entry(const char __user *buffer, size_t count)
308 308
309 err = -ENOMEM; 309 err = -ENOMEM;
310 memsize = sizeof(Node) + count + 8; 310 memsize = sizeof(Node) + count + 8;
311 e = kmalloc(memsize, GFP_USER); 311 e = kmalloc(memsize, GFP_KERNEL);
312 if (!e) 312 if (!e)
313 goto out; 313 goto out;
314 314
@@ -416,7 +416,7 @@ static Node *create_entry(const char __user *buffer, size_t count)
416 416
417 if (e->mask) { 417 if (e->mask) {
418 int i; 418 int i;
419 char *masked = kmalloc(e->size, GFP_USER); 419 char *masked = kmalloc(e->size, GFP_KERNEL);
420 420
421 print_hex_dump_bytes( 421 print_hex_dump_bytes(
422 KBUILD_MODNAME ": register: mask[decoded]: ", 422 KBUILD_MODNAME ": register: mask[decoded]: ",