mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 04:20:53 +07:00
nommu: report correct errno in message
Report the correct errno for out of memory debug output in binfmt_flat.c Signed-off-by: Philippe De Muyter <phdm@macqel.be> Signed-off-by: Greg Ungerer <gerg@uclinux.org> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4342f4ace2
commit
c287ef1ff9
@ -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",
|
||||
(int)-datapos);
|
||||
(int)-realdatastart);
|
||||
do_munmap(current->mm, textpos, text_len);
|
||||
ret = realdatastart;
|
||||
goto err;
|
||||
|
Loading…
Reference in New Issue
Block a user