[ofa-general] i got kernel oops in ib_umad when executing ULPstests

Dotan Barak dotanb at dev.mellanox.co.il
Sun Dec 2 01:28:06 PST 2007


>     Signed-off-by: Roland Dreier <rolandd at cisco.com>
>
> diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
> index 493f4c6..a72bcea 100644
> --- a/drivers/infiniband/core/mad.c
> +++ b/drivers/infiniband/core/mad.c
> @@ -1750,7 +1750,7 @@ ib_find_send_mad(struct ib_mad_agent_private *mad_agent_pr
>                      */
>                     (is_direct(wc->recv_buf.mad->mad_hdr.mgmt_class) ||
>                      rcv_has_same_gid(mad_agent_priv, wr, wc)))
> -                       return wr;
> +                       return (wr->status == IB_WC_SUCCESS) ? wr : NULL;
>         }
>
>         /*
>
>
> Dotan, can you verify that this fix is still there after the backport patches
> are applied?
>
> - Sean
>
>   

Yes, this patch exists in the code after the backport patches were 
applied....

Dotan



More information about the general mailing list