imsm: FIX: klocwork: passed dev pointer to is_gen_migration() can be NULL
Pointer dev2 passed in write_super_imsm():4451 can be equal to NULL. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
7e45b5504c
commit
7534230b07
|
@ -5312,6 +5312,9 @@ static int update_subarray_imsm(struct supertype *st, char *subarray,
|
|||
|
||||
static int is_gen_migration(struct imsm_dev *dev)
|
||||
{
|
||||
if (dev == NULL)
|
||||
return 0;
|
||||
|
||||
if (!dev->vol.migr_state)
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue