1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Check allocation result

This commit is contained in:
Zdenek Kabelac 2012-02-27 09:56:27 +00:00
parent c608e46675
commit 93b087da97
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.94 -
====================================
Test allocation result in sysfs filter creation.
Limit sscanf parameters with buffer size in clvmd get_initial_state().
Use const lv pointer for lv_is_active...() functions.
Use same signed numbers in _mirrored_transient_status().

View File

@ -113,7 +113,9 @@ static struct dev_set *_dev_set_create(struct dm_pool *mem,
return NULL;
ds->mem = mem;
ds->sys_block = dm_pool_strdup(mem, sys_block);
if (!(ds->sys_block = dm_pool_strdup(mem, sys_block)))
return NULL;
ds->sysfs_depth = sysfs_depth;
ds->initialised = 0;