aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hostfs/hostfs.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2010-10-26 17:21:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 19:52:04 -0400
commit1b627d5771312c92404b66f0a0b16f66036dd2e1 (patch)
tree4911b7c27da0fc09f557f46a275782b9a73e6fb3 /fs/hostfs/hostfs.h
parentde5e2ddf9bb3ce7b643223b9b0718062254f302f (diff)
hostfs: fix UML crash: remove f_spare from hostfs
365b1818 ("add f_flags to struct statfs(64)") resized f_spare within struct statfs which caused a UML crash. There is no need to copy f_spare. Signed-off-by: Richard Weinberger <richard@nod.at> Reported-by: Toralf Förster <toralf.foerster@gmx.de> Tested-by: Toralf Förster <toralf.foerster@gmx.de> Cc: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Jeff Dike <jdike@addtoit.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hostfs/hostfs.h')
-rw-r--r--fs/hostfs/hostfs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h
index 7c232c1487ee..bf15a43016b9 100644
--- a/fs/hostfs/hostfs.h
+++ b/fs/hostfs/hostfs.h
@@ -91,7 +91,6 @@ extern int rename_file(char *from, char *to);
91extern int do_statfs(char *root, long *bsize_out, long long *blocks_out, 91extern int do_statfs(char *root, long *bsize_out, long long *blocks_out,
92 long long *bfree_out, long long *bavail_out, 92 long long *bfree_out, long long *bavail_out,
93 long long *files_out, long long *ffree_out, 93 long long *files_out, long long *ffree_out,
94 void *fsid_out, int fsid_size, long *namelen_out, 94 void *fsid_out, int fsid_size, long *namelen_out);
95 long *spare_out);
96 95
97#endif 96#endif