1
0
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:
Zdenek Kabelac 2012-03-23 09:48:17 +00:00
parent 4ea8533f30
commit 5da4d94adc
2 changed files with 4 additions and 1 deletions

View File

@ -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).

View File

@ -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;