summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorWang Shilong <wangshilong1991@gmail.com>2014-09-18 05:01:12 -0400
committerDavid Sterba <dsterba@suse.cz>2014-10-10 10:38:32 +0200
commit0d84aa903a51c472f273b02da98da2f6160e4289 (patch)
treed3d65bf62e589c7f93e1fd24e89cb5301c70166b /utils.c
parentd0b24918f6a593969ccbdcf861c142ba2ccc67b7 (diff)
btrfs-progs: super-recover: fix double free fs_devices memory
super-recover collects btrfs devices infomation using existed functions scan_one_devices(). Problem is fs_devices is freed twice in close_ctree() and free_recover_superblock() for super correction path. Fix this problem by checking whether fs_devices memory have been freed before we free it. Cc: Eric Sandeen <sandeen@redhat.com> Cc: Chris Murphy <lists@colorremedies.com> Acked-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Wang Shilong <wangshilong1991@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.c')
0 files changed, 0 insertions, 0 deletions