hostfs: fix UML crash: remove f_spare from hostfs
commitb470e7685464ad53665ebf349e30a29d696249c3
authorRichard Weinberger <richard@nod.at>
Tue, 26 Oct 2010 21:21:18 +0000 (26 14:21 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:31 +0000 (9 13:32 -0800)
treefd90aa3b11ac2132866bd4c1960cd00db32b321f
parent9f488e4205bbcaad3a68a51d39cd2989ddd077a8
hostfs: fix UML crash: remove f_spare from hostfs

commit 1b627d5771312c92404b66f0a0b16f66036dd2e1 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/hostfs/hostfs.h
fs/hostfs/hostfs_kern.c
fs/hostfs/hostfs_user.c