Commit c287ef1f authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

nommu: report correct errno in message

Report the correct errno for out of memory debug output in binfmt_flat.c
Signed-off-by: default avatarPhilippe De Muyter <>
Signed-off-by: default avatarGreg Ungerer <>
Cc: David Howells <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 4342f4ac
......@@ -558,7 +558,7 @@ static int load_flat_file(struct linux_binprm * bprm,
if (!realdatastart)
realdatastart = (unsigned long) -ENOMEM;
printk("Unable to allocate RAM for process data, errno %d\n",
do_munmap(current->mm, textpos, text_len);
ret = realdatastart;
goto err;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment