aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/sa_query.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index 126ac80db7b8..9191793c9007 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -431,8 +431,8 @@ static void ib_sa_event(struct ib_event_handler *handler, struct ib_event *event
431 event->event == IB_EVENT_LID_CHANGE || 431 event->event == IB_EVENT_LID_CHANGE ||
432 event->event == IB_EVENT_PKEY_CHANGE || 432 event->event == IB_EVENT_PKEY_CHANGE ||
433 event->event == IB_EVENT_SM_CHANGE) { 433 event->event == IB_EVENT_SM_CHANGE) {
434 struct ib_sa_device *sa_dev = 434 struct ib_sa_device *sa_dev;
435 ib_get_client_data(event->device, &sa_client); 435 sa_dev = container_of(handler, typeof(*sa_dev), event_handler);
436 436
437 schedule_work(&sa_dev->port[event->element.port_num - 437 schedule_work(&sa_dev->port[event->element.port_num -
438 sa_dev->start_port].update_task); 438 sa_dev->start_port].update_task);