VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Greg Ungerer <gerg@snapgear.com> 2007-06-08 13:46:43 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-06-08 17:23:32 -0700 commit: c287ef1ff9296ddf707af6f9d355e1c3ffc243dd parent: 4342f4ace2335d4fa9fe52b4cceca979413470b2
Commit Summary:
nommu: report correct errno in message
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 7b0265d7f3a8..861141b4f6d6 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -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;