diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-01 05:55:03 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-01 05:55:03 +0200 |
commit | e993835441734c184d70d3716eed78a08eeb71c2 (patch) | |
tree | 583aa17813cdae1c4640e353f8c6df3f197e7548 /fs/cramfs | |
parent | [PATCH] libata: turn off NCQ if queue depth is adjusted to 1 (diff) | |
parent | [PATCH] SCSI: fix request flag-related build breakage (diff) | |
download | linux-e993835441734c184d70d3716eed78a08eeb71c2.tar.xz linux-e993835441734c184d70d3716eed78a08eeb71c2.zip |
Merge branch 'master' into upstream
Diffstat (limited to 'fs/cramfs')
-rw-r--r-- | fs/cramfs/inode.c | 11 | ||||
-rw-r--r-- | fs/cramfs/uncompress.c | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index ad96b6990715..a624c3ec8189 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -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) diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c index 8def89f2c438..fc3ccb74626f 100644 --- a/fs/cramfs/uncompress.c +++ b/fs/cramfs/uncompress.c @@ -68,11 +68,10 @@ int cramfs_uncompress_init(void) return 0; } -int cramfs_uncompress_exit(void) +void cramfs_uncompress_exit(void) { if (!--initialized) { zlib_inflateEnd(&stream); vfree(stream.workspace); } - return 0; } |