Zhiqiang Liu 100c4fb387 dev_name() determine whether the dev->aliases linked list is
empty before obtaining the dev name

If dev->aliases linked list is empty, then directly obtain the str
address of dm_str_list saved in dev_aliases.n, an unknown address
will be returned, which may cause segfault.

So we need to judge whether the dev->aliases linked list is empty before
getting it to avoid returning unknown address.

Fix issue: https://gitee.com/src-openeuler/lvm2/issues/I4RZP9

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2022-01-30 11:43:11 +08:00
2020-07-02 11:55:03 +08:00
2021-11-23 14:34:14 +08:00
Description
No description provided
20 MiB
Languages
Diff 100%