Reg: Staging Driver: lustre/lustre/lov

From: Monam Agarwal
Date: Sun Mar 09 2014 - 00:12:12 EST


Hi,

I was going through lov_pack.c and in the function lov_unpackmd before
checking for lmm we are using the lmm_pattern value and doing
allocation. In case lmm is null use of pattern =
le32_to_cpu(lmm->lmm_pattern); will throw a null pointer exception.

I was thinking of moving the null check above but i that case what
will be the allocation pattern?

Regards,
Monam Agarwal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/