Skip to content

Commit

Permalink
fs/btrfs/volumes.c: add missing free_fs_devices
Browse files Browse the repository at this point in the history
Free fs_devices as done in the error-handling code just below.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
  • Loading branch information
Julia Lawall authored and David Sterba committed Apr 18, 2012
1 parent 8a3db18 commit 48d2823
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48d2823

Please sign in to comment.