From: Stefano Babic Date: Wed, 21 Apr 2010 07:47:19 +0000 (+0200) Subject: ubifsmount fails due to not initialized list X-Git-Tag: v2010.06-rc1~70^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=68651683593958cedcdfb9d06a5fe0a524f8dd6e;p=u-boot ubifsmount fails due to not initialized list 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 Signed-off-by: Stefan Roese --- diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 391dea4256..39e3efec80 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