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:
parent
f86c1f5d0a
commit
6740eb1c2b
@ -4743,7 +4743,8 @@ out_remove:
|
|||||||
* single list operation and call _stats_delete_region() directly
|
* single list operation and call _stats_delete_region() directly
|
||||||
* to avoid a @stats_list ioctl and list parsing for each region.
|
* 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;
|
fail_region = i;
|
||||||
_stats_cleanup_region_ids(dms, regions, fail_region);
|
_stats_cleanup_region_ids(dms, regions, fail_region);
|
||||||
|
Loading…
Reference in New Issue
Block a user