diff options
author | Michael S. Tsirkin <mst@dev.mellanox.co.il> | 2007-05-02 15:31:12 +0300 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-05-06 21:18:11 -0700 |
commit | d6ef7d68f6f51c5b9de01c542dab8b90067a9c27 (patch) | |
tree | 9121e758ef948defe37c7d960bcc422fe37aea0f /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | aff9e39d97585486764572ab2f3bf5dfce18c660 (diff) |
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