Skip to contentSkip to conversation

nommu: report correct errno in message

PATCH New Greg Ungerer 1 participant 1 message Jun 1, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nommu: report correct errno in message

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

---

fs/binfmt_flat.c +1 -1
diff -Naur linux-2.6.21/fs/binfmt_flat.c linux-2.6.21-uc0/fs/binfmt_flat.c
@@ -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;