Commit af13b492 authored by David Sterba's avatar David Sterba

btrfs: fix error labels in init_btrfs_fs

btrfs_interface_init rarely fails but we could leak the prelim_ref slab.
Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
parent bfebd8b5
...@@ -1999,11 +1999,11 @@ static int __init init_btrfs_fs(void) ...@@ -1999,11 +1999,11 @@ static int __init init_btrfs_fs(void)
err = btrfs_prelim_ref_init(); err = btrfs_prelim_ref_init();
if (err) if (err)
goto free_prelim_ref; goto free_delayed_ref;
err = btrfs_interface_init(); err = btrfs_interface_init();
if (err) if (err)
goto free_delayed_ref; goto free_prelim_ref;
btrfs_init_lockdep(); btrfs_init_lockdep();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment