mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: fix <backtrace> in dm_stats_get_nr_regions
This commit is contained in:
parent
cf0fa3d693
commit
53e92441a6
@ -2132,8 +2132,12 @@ void dm_stats_buffer_destroy(struct dm_stats *dms, char *buffer)
|
||||
|
||||
uint64_t dm_stats_get_nr_regions(const struct dm_stats *dms)
|
||||
{
|
||||
if (!dms || !dms->regions)
|
||||
if (!dms)
|
||||
return_0;
|
||||
|
||||
if (!dms->regions)
|
||||
return 0;
|
||||
|
||||
return dms->nr_regions;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user