]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Verify that QP handler is valid before dispatching events
authorShlomo Pongratz <shlomop@mellanox.com>
Wed, 10 Apr 2013 14:26:46 +0000 (14:26 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 17 Apr 2013 05:42:54 +0000 (22:42 -0700)
commitd1efe35cce3603f58276bcf31ecfed13264f5683
tree16fb7f69124d3602468deba7010cea29313771ce
parent3d34597d718ce53665fd0801124f99ffdab92e9b
IB/core: Verify that QP handler is valid before dispatching events

For QPs of type IB_QPT_XRC_TGT the IB core assigns a common event
handler __ib_shared_qp_event_handler(), and the optionally supplied
event handler is stored. When the common handler is called it iterates
on all opened QPs and calles the original handlers without checking if
they are NULL.  Fix that.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/verbs.c