fix debugging version of dm_pool_grow_object to properly use delta=0
PATCH 1/1 fix debugging version of dm_pool_grow_object to properly use delta=0
Fix debug poll grow object to properly support delta=0
(It prints garbage for some reports)
Signed-off-by Milan Broz <[email protected]>
--- libdm/mm/pool-debug.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
libdm/mm/pool-debug.c +3 -0
@@ -220,6 +220,9 @@ int dm_pool_grow_object(struct dm_pool *p, const void *extra, size_t delta)struct block *new;size_t size = delta ? :strlen (extra); +if (!delta) + delta = size; +assert (p->begun);if (p->object)
PATCH 1/1 fix debugging version of dm_pool_grow_object to properly use delta=0
Quoted 1 line · Milan Broz
Fix debug poll grow object to properly support delta=0
It's a bit obfuscated.
Maybe try extra_size instead of delta within the fn, and new_size instead of size?
Alasdair
Signature · 1 line
agk at redhat.com