kernel/drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2_tlv_multi.c
.. .. @@ -31,6 +31,8 @@ 31 31 32 32 if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) { 33 33 multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv); 34 + if (!multi)35 + return NULL;34 36 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); 35 37 } 36 38