mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-26 14:04:15 +03:00
Add missing log_error for alloc failure
This commit is contained in:
parent
fea9b4eaa3
commit
b105d7e207
@ -99,8 +99,10 @@ int read_config_fd(struct dm_config_tree *cft, struct device *dev,
|
|||||||
}
|
}
|
||||||
fb = fb + mmap_offset;
|
fb = fb + mmap_offset;
|
||||||
} else {
|
} else {
|
||||||
if (!(buf = dm_malloc(size + size2)))
|
if (!(buf = dm_malloc(size + size2))) {
|
||||||
return_0;
|
log_error("Failed to allocate circular buffer.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (!dev_read_circular(dev, (uint64_t) offset, size,
|
if (!dev_read_circular(dev, (uint64_t) offset, size,
|
||||||
(uint64_t) offset2, size2, buf)) {
|
(uint64_t) offset2, size2, buf)) {
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user