diff options
| author | Julia Lawall <Julia.Lawall@lip6.fr> | 2012-04-14 05:24:33 -0400 |
|---|---|---|
| committer | David Sterba <dsterba@suse.cz> | 2012-04-18 13:22:28 -0400 |
| commit | 48d282326b3ce5f435835f5fb0e3231c399f4f9a (patch) | |
| tree | eaac4c3c02d2168ed47ba50e41f765a32f319c61 /fs | |
| parent | 8a3db1849e9e2563727ea2dc32737502e0096641 (diff) | |
fs/btrfs/volumes.c: add missing free_fs_devices
Free fs_devices as done in the error-handling code just below.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/btrfs/volumes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index ce289af526f0..3b984173d25b 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
| @@ -4352,8 +4352,10 @@ static int open_seed_devices(struct btrfs_root *root, u8 *fsid) | |||
| 4352 | 4352 | ||
| 4353 | ret = __btrfs_open_devices(fs_devices, FMODE_READ, | 4353 | ret = __btrfs_open_devices(fs_devices, FMODE_READ, |
| 4354 | root->fs_info->bdev_holder); | 4354 | root->fs_info->bdev_holder); |
| 4355 | if (ret) | 4355 | if (ret) { |
| 4356 | free_fs_devices(fs_devices); | ||
| 4356 | goto out; | 4357 | goto out; |
| 4358 | } | ||
| 4357 | 4359 | ||
| 4358 | if (!fs_devices->seeding) { | 4360 | if (!fs_devices->seeding) { |
| 4359 | __btrfs_close_devices(fs_devices); | 4361 | __btrfs_close_devices(fs_devices); |
