[openib-general] [PATCH] ib_sa/multicast: Fix crash when multiple HCAs are present
Michael S. Tsirkin
mst at mellanox.co.il
Mon Jan 29 09:51:35 PST 2007
> @@ -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
More information about the general
mailing list