mcctrl: replace GFP_TEMPORARY by GFP_KERNEL

See linux's commit 0ee931c4 ("mm: treewide: remove GFP_TEMPORARY
allocation flag") for a long explanation, but basically that flag
"is just cargo cult" and should be removed

Change-Id: I2147cd65b6b9ec509a72e11cc3abf1fe1561c10b
This commit is contained in:
Dominique Martinet
2018-07-26 18:07:34 +09:00
committed by Balazs Gerofi
parent 6999d0a3f9
commit 0a0a78ac2e
2 changed files with 4 additions and 4 deletions

View File

@@ -1750,13 +1750,13 @@ int mcexec_open_exec(ihk_os_t os, char * __user filename)
return -EINVAL;
}
pathbuf = kmalloc(PATH_MAX, GFP_TEMPORARY);
pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
if (!pathbuf) {
retval = -ENOMEM;
goto out;
}
kfilename = kmalloc(PATH_MAX, GFP_TEMPORARY);
kfilename = kmalloc(PATH_MAX, GFP_KERNEL);
if (!kfilename) {
retval = -ENOMEM;
kfree(pathbuf);