mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue