Ensure there cannot be 'reused' any data from some previous call.
Version 2.02.177 -
====================================
+ Ensure _node_send_message always uses clean status of thin pool.
Fix lvmlockd to use pool lock when accessing _tmeta volume.
Report expected sanlock_convert errors only when retries fail.
Avoid blocking in sanlock_convert on SH to EX lock conversion.
{
struct load_segment *seg;
struct thin_message *tmsg;
- struct dm_status_thin_pool stp = { 0 };
+ struct dm_status_thin_pool stp;
const char *uuid;
int have_messages;
{
int pos;
+ memset(s, 0, sizeof(*s));
+
if (!params) {
log_error("Failed to parse invalid thin params.");
return 0;
{
struct dm_status_thin_pool *s;
- if (!(s = dm_pool_zalloc(mem, sizeof(struct dm_status_thin_pool)))) {
+ if (!(s = dm_pool_alloc(mem, sizeof(struct dm_status_thin_pool)))) {
log_error("Failed to allocate thin_pool status structure.");
return 0;
}