> @@ -742,9 +742,7 @@ static void mcast_event_handler(struct ib_event_handler 
> *handler,
>  {
>       struct mcast_device *dev;
>  
> -     dev = ib_get_client_data(event->device, &mcast_client);
> -     if (!dev)
> -             return;
> +     dev = container_of(handler, struct mcast_device, event_handler);
>  
>       switch (event->event) {
>       case IB_EVENT_PORT_ERR:

I'm seeing crashes with the patch that I posted.
This seems identical to my patch except for the container_of trick. Right?
Is there a reason why ib_get_client_data won't work?


-- 
MST

_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to