pad = data_size - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin); if (pad > data_size || pad < 0) 
pad = IB_MGMT_RMPP_DATA - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin); if (pad > IB_MGMT_RMPP_DATA || pad < 0) 
static inline int get_mad_len(struct mad_rmpp_recv *rmpp_recv){	struct ib_rmpp_mad *rmpp_mad;	int hdr_size, data_size, pad;	rmpp_mad = (struct ib_rmpp_mad *)rmpp_recv->cur_seg_buf->mad;	hdr_size = data_offset(rmpp_mad->mad_hdr.mgmt_class);	data_size = sizeof(struct ib_rmpp_mad) - hdr_size;	pad = data_size - be32_to_cpu(rmpp_mad->rmpp_hdr.paylen_newwin);	if (pad > data_size || pad < 0)		pad = 0;	return hdr_size + rmpp_recv->seg_num * data_size - pad;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f2065e4242e5078d53c521b973c5cd4eae91eca2/mad_rmpp.c/clean/drivers/infiniband/core/mad_rmpp.c