mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
o Put in the 'out of memory' log_err for pool.
This commit is contained in:
parent
dff36d2a77
commit
e2031c81b5
@ -79,7 +79,7 @@ static struct block *_new_block(size_t s, unsigned alignment)
|
||||
struct block *b = dbg_malloc(len);
|
||||
|
||||
if (!b) {
|
||||
stack;
|
||||
log_err("Out of memory.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -222,8 +222,10 @@ struct chunk *_new_chunk(struct pool *p, size_t s)
|
||||
c = p->spare_chunk;
|
||||
p->spare_chunk = 0;
|
||||
} else {
|
||||
if (!(c = dbg_malloc(s)))
|
||||
if (!(c = dbg_malloc(s))) {
|
||||
log_err("Out of memory.");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
c->end = (char *) c + s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user