Skip to content

Commit

Permalink
[PATCH] cramfs: rewrite init_cramfs_fs()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Sep 29, 2006
1 parent dcc8e55 commit 50d44ed
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fs/cramfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 50d44ed

Please sign in to comment.