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

libdm: abort filemap update if pool allocation fails (coverity)

This commit is contained in:
Bryn M. Reeves 2017-03-29 17:39:31 +01:00
parent bc5d67884f
commit f86c1f5d0a

View File

@ -4540,8 +4540,9 @@ static int _stats_unmap_regions(struct dm_stats *dms, uint64_t group_id,
ext.id = i; ext.id = i;
nr_kept++; nr_kept++;
dm_pool_grow_object(mem, &ext, if (!dm_pool_grow_object(mem, &ext, sizeof(ext)))
sizeof(ext)); goto out;
log_very_verbose("Kept region " FMTu64, i); log_very_verbose("Kept region " FMTu64, i);
} else { } else {