mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] cramfs: rewrite init_cramfs_fs()
Two lines -- two bugs. :-( Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
dcc8e559ee
commit
50d44ed009
1 changed files with 9 additions and 2 deletions
|
|
@ -543,8 +543,15 @@ static struct file_system_type cramfs_fs_type = {
|
|||
|
||||
static int __init init_cramfs_fs(void)
|
||||
{
|
||||
cramfs_uncompress_init();
|
||||
return register_filesystem(&cramfs_fs_type);
|
||||
int rv;
|
||||
|
||||
rv = cramfs_uncompress_init();
|
||||
if (rv < 0)
|
||||
return rv;
|
||||
rv = register_filesystem(&cramfs_fs_type);
|
||||
if (rv < 0)
|
||||
cramfs_uncompress_exit();
|
||||
return rv;
|
||||
}
|
||||
|
||||
static void __exit exit_cramfs_fs(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue