mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dmsetup: check if new_name is non NULL
This commit is contained in:
parent
b9ae22d758
commit
b1640df5e6
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.77 -
|
Version 1.02.77 -
|
||||||
=================================
|
=================================
|
||||||
|
Check for existing new_name for dmsetup rename.
|
||||||
Fix memory leak in dmsetup _get_split_name() error path.
|
Fix memory leak in dmsetup _get_split_name() error path.
|
||||||
|
|
||||||
Version 1.02.76 - 7th August 2012
|
Version 1.02.76 - 7th August 2012
|
||||||
|
@ -719,7 +719,7 @@ static int _do_rename(const char *name, const char *new_name, const char *new_uu
|
|||||||
if (new_uuid) {
|
if (new_uuid) {
|
||||||
if (!dm_task_set_newuuid(dmt, new_uuid))
|
if (!dm_task_set_newuuid(dmt, new_uuid))
|
||||||
goto out;
|
goto out;
|
||||||
} else if (!dm_task_set_newname(dmt, new_name))
|
} else if (!new_name || !dm_task_set_newname(dmt, new_name))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (_switches[NOOPENCOUNT_ARG] && !dm_task_no_open_count(dmt))
|
if (_switches[NOOPENCOUNT_ARG] && !dm_task_no_open_count(dmt))
|
||||||
|
Loading…
Reference in New Issue
Block a user