mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
ensure dm_strdup succeeds
This commit is contained in:
parent
c0b23a1491
commit
42870d441d
@ -217,7 +217,9 @@ static char *_find_dm_name_of_device(dev_t st_rdev)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (buf.st_rdev == st_rdev) {
|
if (buf.st_rdev == st_rdev) {
|
||||||
new_name = dm_strdup(name);
|
if (!(new_name = dm_strdup(name)))
|
||||||
|
log_error("dm_task_set_name: strdup(%s) failed",
|
||||||
|
name);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user