diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-12-10 15:52:13 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 17:41:12 -0800 |
commit | f7e1ad1a1e23af97419cd8d5adff67fedf7cf169 (patch) | |
tree | 78f4076ca86846e148f1c90bf6dd3ee86095dfa5 /fs/binfmt_misc.c | |
parent | e6084d4a086b626acb5cf97795a9243062c2f4cd (diff) | |
download | op-kernel-dev-f7e1ad1a1e23af97419cd8d5adff67fedf7cf169.zip op-kernel-dev-f7e1ad1a1e23af97419cd8d5adff67fedf7cf169.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 01a2cd9..70789e1 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) err = -ENOMEM; memsize = sizeof(Node) + count + 8; - e = kmalloc(memsize, GFP_USER); + e = kmalloc(memsize, GFP_KERNEL); if (!e) goto out; @@ -416,7 +416,7 @@ static Node *create_entry(const char __user *buffer, size_t count) if (e->mask) { int i; - char *masked = kmalloc(e->size, GFP_USER); + char *masked = kmalloc(e->size, GFP_KERNEL); print_hex_dump_bytes( KBUILD_MODNAME ": register: mask[decoded]: ", |