]> git.sur5r.net Git - u-boot/commitdiff
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 391dea4256e7a0a57bd54cf52c35f57e8bc33b6a..39e3efec802d6929ac914ec88d10afa720e74d47 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