> We had a script which was looping through the devices returned from ibstat
> and attempted to register a SMI agent on an ethernet device.  This caused
> a kernel panic.  We have fixed our script.  This patch prevents the panic.

Do you remember where the panic was?

I'm going to guess in ib_register_mad_agent() at this line:

        mad_agent_priv->agent.mr = ib_get_dma_mr(port_priv->qp_info[qpn].qp->pd,
                                                 IB_ACCESS_LOCAL_WRITE);

in which case it may be safer to check for the NULL pointer.  Can you confirm 
if this was the spot?

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to