]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: Check that send and recv CQs are different before destroying
authorSean Hefty <sean.hefty@intel.com>
Mon, 21 May 2012 05:41:38 +0000 (22:41 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 21 May 2012 05:41:38 +0000 (22:41 -0700)
commita3796c012704c7f02811c49538d65dc24c2d1cb3
tree84dde5925d2ae4b35a6fc92a878e89811540430a
parent90b96504395c3e9f4652f4b46d63be3dea3689fe
librdmacm: Check that send and recv CQs are different before destroying

ucma_destroy_cqs() destroys both the send and recv CQs if they
are non-null.  If the two CQs are actually the same one, this
results in a crash when trying to destroy the second CQ.  Check
that the CQs are different before destroying the second CQ.

This fixes a crash when using rsockets, which sets the send and
recv CQs to the same CQ.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c