Commit 50d44ed0 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] cramfs: rewrite init_cramfs_fs()

Two lines -- two bugs. :-(
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent dcc8e559
...@@ -543,8 +543,15 @@ static struct file_system_type cramfs_fs_type = { ...@@ -543,8 +543,15 @@ static struct file_system_type cramfs_fs_type = {
static int __init init_cramfs_fs(void) static int __init init_cramfs_fs(void)
{ {
cramfs_uncompress_init(); int rv;
return register_filesystem(&cramfs_fs_type);
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) static void __exit exit_cramfs_fs(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment