All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH 1/1] hostfs: fix UML crash
@ 2010-10-18 16:36 ` Richard Weinberger
  0 siblings, 0 replies; 15+ messages in thread
From: Richard Weinberger @ 2010-10-18 16:36 UTC (permalink / raw)
  To: akpm
  Cc: user-mode-linux-devel, Richard Weinberger, jdike, linux-kernel,
	viro, toralf.foerster

365b1818 resized f_spare within struct statfs.
hostfs accesses f_spare directly and needs an update.

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>
---
 fs/hostfs/hostfs_user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/hostfs/hostfs_user.c b/fs/hostfs/hostfs_user.c
index 6777aa0..ce2f168 100644
--- a/fs/hostfs/hostfs_user.c
+++ b/fs/hostfs/hostfs_user.c
@@ -388,6 +388,6 @@ int do_statfs(char *root, long *bsize_out, long long *blocks_out,
 	spare_out[1] = buf.f_spare[1];
 	spare_out[2] = buf.f_spare[2];
 	spare_out[3] = buf.f_spare[3];
-	spare_out[4] = buf.f_spare[4];
+
 	return 0;
 }
-- 
1.6.6.1


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2010-10-19 10:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-18 16:36 [uml-devel] [PATCH 1/1] hostfs: fix UML crash Richard Weinberger
2010-10-18 16:36 ` Richard Weinberger
2010-10-18 18:40 ` [uml-devel] " Andrew Morton
2010-10-18 18:40   ` Andrew Morton
2010-10-18 18:53   ` Richard Weinberger
2010-10-18 20:02     ` [uml-devel] " Andrew Morton
2010-10-18 20:02       ` Andrew Morton
2010-10-19  1:11       ` [uml-devel] " Christoph Hellwig
2010-10-19  1:11         ` Christoph Hellwig
2010-10-19 10:27         ` Richard Weinberger
2010-10-19 10:27           ` Richard Weinberger
2010-10-18 19:22   ` [uml-devel] " Geert Uytterhoeven
2010-10-18 19:31     ` Richard Weinberger
2010-10-18 19:43       ` Geert Uytterhoeven
2010-10-18 20:03         ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.