summaryrefslogtreecommitdiffstats
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, 2 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 4b8e2b7..03dcbd5 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -3426,7 +3426,7 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
{
struct stat stb;
struct intel_super *super = st->sb;
- struct imsm_super *mpb = super->anchor;
+ struct imsm_super *mpb;
struct dl *dl;
unsigned long long pos = 0;
unsigned long long maxsize;
@@ -3436,6 +3436,7 @@ static int validate_geometry_imsm_volume(struct supertype *st, int level,
/* We must have the container info already read in. */
if (!super)
return 0;
+ mpb = super->anchor;
if (!is_raid_level_supported(super->orom, level, raiddisks)) {
pr_vrb(": platform does not support raid%d with %d disk%s\n",