Message ID | alpine.DEB.2.02.1512220913040.2057@localhost6.localdomain6 (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
--- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c @@ -1664,7 +1664,7 @@ static enum i40iw_status_code i40iw_sc_c { u32 pble_obj_cnt; - if (I40IW_MIN_CQ_SIZE > info->num_elem || I40IW_MAX_CQ_SIZE < info->num_elem) + if (info->num_elem < I40IW_MIN_CQ_SIZE || info->num_elem > I40IW_MAX_CQ_SIZE) return I40IW_ERR_INVALID_SIZE; if (info->ceq_id > I40IW_MAX_CEQID)