mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
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>
This commit is contained in:
parent
bfebd8b544
commit
af13b4922b
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue