]> 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)
commit66410c265b2661e16b7f6126bcc4ea5c7e1af1bd
treed551dadf671871078fc6a8314f4015e8e5d6e78a
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
src/rsocket.c