aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cramfs
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-09-29 05:01:04 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:20 -0400
commit50d44ed009a628e6d5c784fae18ea743d7cf199a (patch)
tree596b91bfd22d0101619599e5085451e9558421fe /fs/cramfs
parentdcc8e559ee5ae03fa6bdb8611d76d86d0083e793 (diff)
[PATCH] cramfs: rewrite init_cramfs_fs()
Two lines -- two bugs. :-( Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/cramfs')
-rw-r--r--fs/cramfs/inode.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c
index ad96b699071..a624c3ec818 100644
--- a/fs/cramfs/inode.c
+++ b/fs/cramfs/inode.c
@@ -543,8 +543,15 @@ static struct file_system_type cramfs_fs_type = {
543 543
544static int __init init_cramfs_fs(void) 544static int __init init_cramfs_fs(void)
545{ 545{
546 cramfs_uncompress_init(); 546 int rv;
547 return register_filesystem(&cramfs_fs_type); 547
548 rv = cramfs_uncompress_init();
549 if (rv < 0)
550 return rv;
551 rv = register_filesystem(&cramfs_fs_type);
552 if (rv < 0)
553 cramfs_uncompress_exit();
554 return rv;
548} 555}
549 556
550static void __exit exit_cramfs_fs(void) 557static void __exit exit_cramfs_fs(void)