lmm1 = &lmv->lmv_md_v1;
CDEBUG(level,
- "magic 0x%08X, master %#X stripe_count %#x hash_type %#x\n",
+ "magic 0x%08X, master %#X stripe_count %d hash_type %#x\n",
le32_to_cpu(lmm1->lmv_magic),
le32_to_cpu(lmm1->lmv_master_mdt_index),
le32_to_cpu(lmm1->lmv_stripe_count),
if (le32_to_cpu(lmm1->lmv_magic) == LMV_MAGIC_STRIPE)
return;
+ if (le32_to_cpu(lmm1->lmv_stripe_count) > LMV_MAX_STRIPE_COUNT)
+ return;
+
for (i = 0; i < le32_to_cpu(lmm1->lmv_stripe_count); i++) {
struct lu_fid fid;