]> 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)
commit6efa52c79449bcac31414f6682f87f9a30f05bae
tree6bbc2f526b97dfafc16e7ec34dc8e4e1ce587f40
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>