diff options
Diffstat (limited to 'lib/string_helpers.c')
-rw-r--r-- | lib/string_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/string_helpers.c b/lib/string_helpers.c index ecaac2c0526f..29c490e5d478 100644 --- a/lib/string_helpers.c +++ b/lib/string_helpers.c | |||
@@ -576,7 +576,7 @@ char *kstrdup_quotable_cmdline(struct task_struct *task, gfp_t gfp) | |||
576 | char *buffer, *quoted; | 576 | char *buffer, *quoted; |
577 | int i, res; | 577 | int i, res; |
578 | 578 | ||
579 | buffer = kmalloc(PAGE_SIZE, GFP_TEMPORARY); | 579 | buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); |
580 | if (!buffer) | 580 | if (!buffer) |
581 | return NULL; | 581 | return NULL; |
582 | 582 | ||
@@ -612,7 +612,7 @@ char *kstrdup_quotable_file(struct file *file, gfp_t gfp) | |||
612 | return kstrdup("<unknown>", gfp); | 612 | return kstrdup("<unknown>", gfp); |
613 | 613 | ||
614 | /* We add 11 spaces for ' (deleted)' to be appended */ | 614 | /* We add 11 spaces for ' (deleted)' to be appended */ |
615 | temp = kmalloc(PATH_MAX + 11, GFP_TEMPORARY); | 615 | temp = kmalloc(PATH_MAX + 11, GFP_KERNEL); |
616 | if (!temp) | 616 | if (!temp) |
617 | return kstrdup("<no_memory>", gfp); | 617 | return kstrdup("<no_memory>", gfp); |
618 | 618 | ||