From: Julia Lawall Date: Sat, 14 Apr 2012 09:24:33 +0000 (+0200) Subject: fs/btrfs/volumes.c: add missing free_fs_devices X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=48d282326b3ce5f435835f5fb0e3231c399f4f9a;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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) 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);