From: Hefty, Sean Date: Thu, 6 Oct 2011 16:32:33 +0000 (-0700) Subject: RDMA/cma: Fix crash in cma_req_handler X-Git-Tag: v3.2-rc1~104^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9595480c5dd1f01e477e8c993d6b24fa484eca3f;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed