mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-23 21:35:29 +03:00
ensure dm_strdup succeeds
This commit is contained in:
parent
64c37a20d1
commit
bc9b5706e9
@ -217,7 +217,9 @@ static char *_find_dm_name_of_device(dev_t st_rdev)
|
||||
continue;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user