]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/cma: Fix crash in cma_req_handler
authorHefty, Sean <sean.hefty@intel.com>
Mon, 22 Aug 2011 19:28:28 +0000 (19:28 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 3 Oct 2011 18:15:43 +0000 (11:15 -0700)
commit3a6ad2d27daf30e836658cf4c09ac4a3965b8bab
tree85ecb27130dd85f6940ec68991276f5e8bfa4e6a
parentfcb8ce5cfe30ca9ca5c9a79cdfe26d1993e65e0c
RDMA/cma: Fix crash in cma_req_handler

The RDMA CM uses the local qp_type to determine how to process an
incoming request.  This can result in an incoming REQ being treated as
a SIDR REQ and vice versa.  Fix this by switching off the event type
instead, and for good measure verify that the listener supports the
incoming connection request.

This problem showed up when a user space application mismatched the QP
types between a client and server app.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c