diff options
author | David Sterba <dsterba@suse.cz> | 2014-07-30 00:58:37 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-10-02 17:30:29 +0200 |
commit | af13b4922b057b4ebc7e2315a6f666ecb65890e4 (patch) | |
tree | e101e2f08051862f41e12ded4d4a5f51d26edef0 /fs/btrfs/super.c | |
parent | btrfs: use enum for wq endio metadata type (diff) | |
download | linux-af13b4922b057b4ebc7e2315a6f666ecb65890e4.tar.xz linux-af13b4922b057b4ebc7e2315a6f666ecb65890e4.zip |
btrfs: fix error labels in init_btrfs_fs
btrfs_interface_init rarely fails but we could leak the prelim_ref slab.
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index b1d2a42f379d..b915d7704f19 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1999,11 +1999,11 @@ static int __init init_btrfs_fs(void) err = btrfs_prelim_ref_init(); if (err) - goto free_prelim_ref; + goto free_delayed_ref; err = btrfs_interface_init(); if (err) - goto free_delayed_ref; + goto free_prelim_ref; btrfs_init_lockdep(); |