Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 784d135f authored by Tatyana Nikolova's avatar Tatyana Nikolova Committed by Roland Dreier
Browse files

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: default avatarTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: default avatarDonald Wood <Donald.E.Wood@intel.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent d3e51328
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2884,6 +2884,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
			ibevent.device = nesqp->ibqp.device;
			ibevent.event = nesqp->terminate_eventtype;
			ibevent.element.qp = &nesqp->ibqp;
			if (nesqp->ibqp.event_handler)
				nesqp->ibqp.event_handler(&ibevent, nesqp->ibqp.qp_context);
		}
	}