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:
parent
c608e46675
commit
93b087da97
@ -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().
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user