summaryrefslogtreecommitdiff
path: root/super-intel.c
diff options
context:
space:
mode:
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c
index 6c74e50..5dc8ca8 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -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;