diff options
Diffstat (limited to 'fs/squashfs/super.c')
-rw-r--r-- | fs/squashfs/super.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 44500dcf1805..9602ce9ddfc7 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c @@ -445,9 +445,15 @@ static int __init init_squashfs_fs(void) if (err) return err; + if (!squashfs_init_read_wq()) { + destroy_inodecache(); + return -ENOMEM; + } + err = register_filesystem(&squashfs_fs_type); if (err) { destroy_inodecache(); + squashfs_destroy_read_wq(); return err; } @@ -461,6 +467,7 @@ static void __exit exit_squashfs_fs(void) { unregister_filesystem(&squashfs_fs_type); destroy_inodecache(); + squashfs_destroy_read_wq(); } |