Merge branch 'for-4.14-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
[sfrench/cifs-2.6.git] / fs / coredump.c
index 592683711c6432e3a9fa8eabcb95a7934b2b5571..0eec03696707f03d498d1e4596c1c2cfdbb66873 100644 (file)
@@ -161,7 +161,7 @@ static int cn_print_exe_file(struct core_name *cn)
        if (!exe_file)
                return cn_esc_printf(cn, "%s (path unknown)", current->comm);
 
-       pathbuf = kmalloc(PATH_MAX, GFP_TEMPORARY);
+       pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
        if (!pathbuf) {
                ret = -ENOMEM;
                goto put_exe_file;