mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-08 08:58:50 +03:00
dev_manager: add missing validation for usable target_name
Coverity shown path where target_name == NULL would be dereferenced.
This commit is contained in:
parent
b1e21cf9ed
commit
ab6f4649a0
@ -275,7 +275,8 @@ static int _info_run(const char *dlid, struct dm_info *dminfo,
|
||||
target_params = NULL; /* Marking this target_params unusable */
|
||||
} while (target);
|
||||
|
||||
if (!_get_segment_status_from_target_params(target_name, target_params, seg_status))
|
||||
if (!target_name ||
|
||||
!_get_segment_status_from_target_params(target_name, target_params, seg_status))
|
||||
stack;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user