|
@@ -1417,6 +1417,15 @@ static int btt_claim_class(struct device *dev)
|
|
struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
|
|
struct nvdimm_drvdata *ndd = to_ndd(nd_mapping);
|
|
struct nd_namespace_index *nsindex;
|
|
struct nd_namespace_index *nsindex;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * If any of the DIMMs do not support labels the only
|
|
|
|
+ * possible BTT format is v1.
|
|
|
|
+ */
|
|
|
|
+ if (!ndd) {
|
|
|
|
+ loop_bitmask = 0;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
nsindex = to_namespace_index(ndd, ndd->ns_current);
|
|
nsindex = to_namespace_index(ndd, ndd->ns_current);
|
|
if (nsindex == NULL)
|
|
if (nsindex == NULL)
|
|
loop_bitmask |= 1;
|
|
loop_bitmask |= 1;
|