mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: ensure NULL baton is not dereferenced
This commit is contained in:
parent
662020c221
commit
871d9f379f
@ -20,7 +20,7 @@
|
||||
static int _is_pvmove_image_removable(struct logical_volume *mimage_lv,
|
||||
void *baton)
|
||||
{
|
||||
uint32_t mimage_to_remove = *((uint32_t *)baton);
|
||||
uint32_t mimage_to_remove = baton ? *((uint32_t *)baton) : UINT32_MAX;
|
||||
struct lv_segment *mirror_seg;
|
||||
|
||||
if (!(mirror_seg = get_only_segment_using_this_lv(mimage_lv))) {
|
||||
|
Loading…
Reference in New Issue
Block a user