summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2007-06-08 22:46:43 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-06-09 02:23:32 +0200
commitc287ef1ff9296ddf707af6f9d355e1c3ffc243dd (patch)
tree6d8b0388d85c5ffd6b50974ff6b2fd54fea19207 /fs/binfmt_flat.c
parentm68knommu: fix ColdFire timer off by 1 (diff)
downloadlinux-c287ef1ff9296ddf707af6f9d355e1c3ffc243dd.tar.xz
linux-c287ef1ff9296ddf707af6f9d355e1c3ffc243dd.zip
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>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r--fs/binfmt_flat.c2
1 files changed, 1 insertions, 1 deletions
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;