Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48d28232 authored by Julia Lawall's avatar Julia Lawall Committed by David Sterba
Browse files

fs/btrfs/volumes.c: add missing free_fs_devices



Free fs_devices as done in the error-handling code just below.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
parent 8a3db184
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4352,8 +4352,10 @@ static int open_seed_devices(struct btrfs_root *root, u8 *fsid)

	ret = __btrfs_open_devices(fs_devices, FMODE_READ,
				   root->fs_info->bdev_holder);
	if (ret)
	if (ret) {
		free_fs_devices(fs_devices);
		goto out;
	}

	if (!fs_devices->seeding) {
		__btrfs_close_devices(fs_devices);