1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: do not attempt filemap cleanup if dm_stats_list() fails (coverity)

This commit is contained in:
Bryn M. Reeves 2017-03-29 17:41:03 +01:00
parent f86c1f5d0a
commit 6740eb1c2b

View File

@ -4743,7 +4743,8 @@ out_remove:
* single list operation and call _stats_delete_region() directly
* to avoid a @stats_list ioctl and list parsing for each region.
*/
dm_stats_list(dms, NULL);
if (!dm_stats_list(dms, NULL))
goto out;
fail_region = i;
_stats_cleanup_region_ids(dms, regions, fail_region);