mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmstats: ensure dm_stats_delete_region() return is checked
This commit is contained in:
parent
cc4f036d36
commit
005adb0a0a
@ -5040,7 +5040,10 @@ static int _stats_delete(CMD_ARGS)
|
||||
log_info("Deleted statistics region %" PRIu64, region_id);
|
||||
}
|
||||
} else {
|
||||
dm_stats_delete_region(dms, region_id);
|
||||
if (!dm_stats_delete_region(dms, region_id)) {
|
||||
log_error("Could not delete statistics region");
|
||||
goto out;
|
||||
}
|
||||
log_info("Deleted statistics region " FMTu64 ".\n", region_id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user