aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hostfs
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2006-03-27 01:14:41 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-27 08:44:39 -0800
commit86c79cbcee7d617c5aaf9b4f7e6cc093397d3451 (patch)
tree4f367ebf885a156103b948ad4614938333325302 /fs/hostfs
parent5f4e8fd08f3993bc31a7dd91767fdb4da4fe6278 (diff)
downloadkernel_samsung_smdk4412-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.zip
kernel_samsung_smdk4412-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.tar.gz
kernel_samsung_smdk4412-86c79cbcee7d617c5aaf9b4f7e6cc093397d3451.tar.bz2
[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/hostfs')
-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 b97809d..23b7cee 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);
}