aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp/ib_srp.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>2007-05-02 15:31:12 +0300
committerRoland Dreier <rolandd@cisco.com>2007-05-06 21:18:11 -0700
commitd6ef7d68f6f51c5b9de01c542dab8b90067a9c27 (patch)
tree9121e758ef948defe37c7d960bcc422fe37aea0f /drivers/infiniband/ulp/srp/ib_srp.h
parentRDMA/cxgb3: Support for new abort logic (diff)
downloadlinux-dev-d6ef7d68f6f51c5b9de01c542dab8b90067a9c27.tar.xz
linux-dev-d6ef7d68f6f51c5b9de01c542dab8b90067a9c27.zip
IPoIB/cm: Don't crash if remote side uses one QP for both directions
The IPoIB CM spec allows the use of a single connection in both active->passive and passive->active directions. The current Linux code uses one connection for both directions, but if another node only uses one connection for both directions, we oops when we try to look up the passive connection. Fix by checking that qp_context is non-NULL before dereferencing it. Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
0 files changed, 0 insertions, 0 deletions