ubifsmount fails due to not initialized list
authorStefano Babic <sbabic@denx.de>
Wed, 21 Apr 2010 07:47:19 +0000 (09:47 +0200)
committerStefan Roese <sr@denx.de>
Wed, 28 Apr 2010 08:00:13 +0000 (10:00 +0200)
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>
Signed-off-by: Stefan Roese <sr@denx.de>
fs/ubifs/super.c

index 391dea4..39e3efe 100644 (file)
@@ -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