mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Return mem fail if hash insert fails
This commit is contained in:
parent
4ea8533f30
commit
5da4d94adc
@ -1,5 +1,7 @@
|
|||||||
Version 2.02.96 -
|
Version 2.02.96 -
|
||||||
================================
|
================================
|
||||||
|
Check hash insert success in lock_vg clvmd.
|
||||||
|
Check for buffer overwrite in get_cluster_type() clvmd.
|
||||||
Fix global/detect_internal_vg_cache_corruption config check.
|
Fix global/detect_internal_vg_cache_corruption config check.
|
||||||
Update lcov Makefile target to support all dmeventd plugins.
|
Update lcov Makefile target to support all dmeventd plugins.
|
||||||
Fix initializiation of thin monitoring (2.02.92).
|
Fix initializiation of thin monitoring (2.02.92).
|
||||||
|
@ -240,7 +240,8 @@ static int lock_vg(struct local_client *client)
|
|||||||
if (status)
|
if (status)
|
||||||
status = errno;
|
status = errno;
|
||||||
else
|
else
|
||||||
dm_hash_insert(lock_hash, lockname, (void *)(long)lkid);
|
if (!dm_hash_insert(lock_hash, lockname, (void *)(long)lkid))
|
||||||
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
Reference in New Issue
Block a user