aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>2012-05-11 15:29:32 -0400
committerRoland Dreier <roland@purestorage.com>2012-05-14 15:48:07 -0400
commit784d135f967849cb51c7e8d0c5230734f893331c (patch)
tree08d682218c6ba8d2fbf139047c1678427411d9f4 /drivers/infiniband
parentd3e5132814fb7c80c4b1c4a0ec6b4fa06943d6d5 (diff)
RDMA/nes: Don't call event handler if pointer is NULL
Don't call the ibqp event_handler pointer in the case it wasn't initialized. Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com> Signed-off-by: Donald Wood <Donald.E.Wood@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes_cm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
index 5c10cbfa2668..020e95c4c4b9 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -2884,7 +2884,8 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
2884 ibevent.device = nesqp->ibqp.device; 2884 ibevent.device = nesqp->ibqp.device;
2885 ibevent.event = nesqp->terminate_eventtype; 2885 ibevent.event = nesqp->terminate_eventtype;
2886 ibevent.element.qp = &nesqp->ibqp; 2886 ibevent.element.qp = &nesqp->ibqp;
2887 nesqp->ibqp.event_handler(&ibevent, nesqp->ibqp.qp_context); 2887 if (nesqp->ibqp.event_handler)
2888 nesqp->ibqp.event_handler(&ibevent, nesqp->ibqp.qp_context);
2888 } 2889 }
2889 } 2890 }
2890 2891