All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ubifsmount fails due to not initialized list
@ 2010-04-21  7:47 Stefano Babic
  2010-04-28  8:02 ` Stefan Roese
  2010-05-05 11:21 ` Quotient Remainder
  0 siblings, 2 replies; 6+ messages in thread
From: Stefano Babic @ 2010-04-21  7:47 UTC (permalink / raw)
  To: u-boot

ubifsmount is not working and causes an access with
a pointer set to zero because the ubifs_fs_type
is not initialized correctly.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 fs/ubifs/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 391dea4..39e3efe 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -1178,6 +1178,7 @@ int ubifs_mount(char *vol_name)
 		ubifs_umount(ubifs_sb->s_fs_info);
 
 	INIT_LIST_HEAD(&ubifs_infos);
+	INIT_LIST_HEAD(&ubifs_fs_type.fs_supers);
 
 	/*
 	 * Mount in read-only mode
-- 
1.6.3.3

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

end of thread, other threads:[~2010-05-26 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21  7:47 [U-Boot] [PATCH] ubifsmount fails due to not initialized list Stefano Babic
2010-04-28  8:02 ` Stefan Roese
2010-05-05 11:21 ` Quotient Remainder
2010-05-05 12:59   ` Stefano Babic
2010-05-05 14:10     ` Quotient Remainder
2010-05-26 13:20       ` Christian Hohnstaedt

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.