diff --git a/WHATS_NEW b/WHATS_NEW index 1eb440fb3..19bcf829f 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Fix use of too big chunks of memory when communication with lvmetad. Fix vgcfgrestore crash when specified incorrect vg name. Refine lvm.conf and man page documentation for autoactivation feature. Add support for thin volumes in vgsplit. diff --git a/libdaemon/client/daemon-io.c b/libdaemon/client/daemon-io.c index 37f274479..6ede8a827 100644 --- a/libdaemon/client/daemon-io.c +++ b/libdaemon/client/daemon-io.c @@ -41,7 +41,7 @@ int buffer_read(int fd, struct buffer *buffer) { buffer->used -= 4; break; /* success, we have the full message now */ } - if (buffer->used - buffer->allocated < 32) + if (buffer->allocated - buffer->used < 32) if (!buffer_realloc(buffer, 1024)) goto fail; continue;