path: root/cmds-device.c
diff options
authorWang Shilong <>2014-09-18 05:01:12 -0400
committerDavid Sterba <>2014-10-10 10:38:32 +0200
commit0d84aa903a51c472f273b02da98da2f6160e4289 (patch)
treed3d65bf62e589c7f93e1fd24e89cb5301c70166b /cmds-device.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 <> Cc: Chris Murphy <> Acked-by: Eric Sandeen <> Signed-off-by: Wang Shilong <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-device.c')
0 files changed, 0 insertions, 0 deletions