[ofa-general] [PATCH] ibutils: fixing seg. fault in ibis_gsi_mad_ctrl.c

Hal Rosenstock hrosenstock at xsigo.com
Tue Jun 17 07:26:33 PDT 2008


On Thu, 2008-05-22 at 15:20 +0300, Yevgeny Kliteynik wrote:
> Hi Oren,
> 
> Fixing seg fault in allocation of gsi management class vector.

Was this ever committed ? Should it be applied for both trunk and
ofed_1_3 ?

-- Hal

> 
> Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
> ---
>  ibis/src/ibis_gsi_mad_ctrl.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ibis/src/ibis_gsi_mad_ctrl.c b/ibis/src/ibis_gsi_mad_ctrl.c
> index 356d33d..bfb5fe6 100644
> --- a/ibis/src/ibis_gsi_mad_ctrl.c
> +++ b/ibis/src/ibis_gsi_mad_ctrl.c
> @@ -731,7 +731,7 @@ ibis_gsi_mad_ctrl_set_class_attr_cb(
>    size = cl_vector_get_size(&p_ctrl->class_vector);
>    if (size <= mad_class)
>    {
> -    cl_status = cl_vector_set_size(&p_ctrl->class_vector,mad_class);
> +    cl_status = cl_vector_set_size(&p_ctrl->class_vector,mad_class+1);
> 
>      if( cl_status != CL_SUCCESS)
>      {




More information about the general mailing list