diff options
author | Stefano Babic <sbabic@denx.de> | 2010-04-21 09:47:19 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2010-04-28 10:00:13 +0200 |
commit | 68651683593958cedcdfb9d06a5fe0a524f8dd6e (patch) | |
tree | 1e159de423c7254085b8bdabe4365a42e4b406f4 /fs | |
parent | 3699c28e6d16b563629c285311a0ce62a2c4c5d0 (diff) | |
download | u-boot-68651683593958cedcdfb9d06a5fe0a524f8dd6e.zip u-boot-68651683593958cedcdfb9d06a5fe0a524f8dd6e.tar.gz u-boot-68651683593958cedcdfb9d06a5fe0a524f8dd6e.tar.bz2 |
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 <sbabic@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'fs')
-rw-r--r-- | 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 |