Skip to content

Commit

Permalink
fs/binfmt_misc.c: use GFP_KERNEL instead of GFP_USER
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm00 authored and torvalds committed Dec 11, 2014
1 parent e6084d4 commit f7e1ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/binfmt_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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]: ",
Expand Down

0 comments on commit f7e1ad1

Please sign in to comment.