summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-03-27 13:14:41 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 20:44:39 +0400
commit86c79cbcee7d617c5aaf9b4f7e6cc093397d3451 (patch)
tree4f367ebf885a156103b948ad4614938333325302 /fs
parent5f4e8fd08f3993bc31a7dd91767fdb4da4fe6278 (diff)
downloadlinux-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.tar.xz
[PATCH] uml: fix hostfs stack corruption
Noted by Oleg Drokin: We initialized an extra slot of struct kstatfs.spare, sometimes causing stack corruption. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Oleg Drokin <green@clusterfs.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/hostfs/hostfs_user.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c
index b97809deba66..23b7cee72123 100644
--- a/fs/hostfs/hostfs_user.c
+++ b/fs/hostfs/hostfs_user.c
@@ -360,7 +360,6 @@ int do_statfs(char *root, long *bsize_out, long long *blocks_out,
spare_out[2] = buf.f_spare[2];
spare_out[3] = buf.f_spare[3];
spare_out[4] = buf.f_spare[4];
- spare_out[5] = buf.f_spare[5];
return(0);
}