mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] nommu: report correct errno in message
@ 2007-06-01 11:13 Greg Ungerer
  0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2007-06-01 11:13 UTC (permalink / raw)
  To: torvalds; +Cc: gerg, linux-kernel

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>
---


diff -Naur linux-2.6.21/fs/binfmt_flat.c linux-2.6.21-uc0/fs/binfmt_flat.c
--- linux-2.6.21/fs/binfmt_flat.c	2007-05-01 17:13:04.000000000 +1000
+++ linux-2.6.21-uc0/fs/binfmt_flat.c	2007-05-01 17:16:23.000000000 +1000
@@ -558,7 +558,7 @@
 			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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-01 11:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 11:13 [PATCH] nommu: report correct errno in message Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®