mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-13 00:58:47 +03:00
Return mem fail if hash insert fails
This commit is contained in:
parent
4687bd1015
commit
8b2fdb26e5
@ -1,5 +1,7 @@
|
||||
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.
|
||||
Update lcov Makefile target to support all dmeventd plugins.
|
||||
Fix initializiation of thin monitoring (2.02.92).
|
||||
|
@ -240,7 +240,8 @@ static int lock_vg(struct local_client *client)
|
||||
if (status)
|
||||
status = errno;
|
||||
else
|
||||
dm_hash_insert(lock_hash, lockname, (void *)(long)lkid);
|
||||
if (!dm_hash_insert(lock_hash, lockname, (void *)(long)lkid))
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user