dapl: locking cleanup and fixes
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 18 Feb 2010 21:49:14 +0000 (21:49 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 18 Feb 2010 21:49:14 +0000 (21:49 +0000)
commitb9b40064e7a42c7622ad5bc5fc23485226e3627c
tree7dc8d703a61039cbc55a3b4c4d50f9b94643588a
parentc22f8bb85b72072da5d09d236450b1a3134c4156
dapl: locking cleanup and fixes

Cleanup allocated completion channels. Destroy cm_ptr locks before freeing the cm_ptr to avoid memory leaks.  And avoid accessing the cm_ptr after queuing it for destruction with the cr_thread to avoid use after free errors.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2701 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/dapl2/dapl/openib_cma/cm.c
ulp/dapl2/dapl/openib_cma/device.c
ulp/dapl2/dapl/openib_scm/cm.c
ulp/dapl2/dapl/openib_scm/device.c
ulp/dapl2/dapl/openib_ucm/cm.c
ulp/dapl2/dapl/openib_ucm/device.c