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:
Родитель
4342f4ace2
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче