[PATCH] nommu: report correct errno in message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Report the correct errno for out of memory debug output in binfmt_flat.c

Signed-off-by: Philippe De Muyter <[email protected]>
Signed-off-by: Greg Ungerer <[email protected]>
---


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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux