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

Add missing log_error for alloc failure

This commit is contained in:
Zdenek Kabelac 2011-10-11 09:06:09 +00:00
parent efe62a3411
commit 8187aff8b9

View File

@ -99,8 +99,10 @@ int read_config_fd(struct dm_config_tree *cft, struct device *dev,
}
fb = fb + mmap_offset;
} else {
if (!(buf = dm_malloc(size + size2)))
return_0;
if (!(buf = dm_malloc(size + size2))) {
log_error("Failed to allocate circular buffer.");
return 0;
}
if (!dev_read_circular(dev, (uint64_t) offset, size,
(uint64_t) offset2, size2, buf)) {
goto out;