]> git.openfabrics.org - ~shefty/rdma-win.git/commit
dapl: locking cleanup and fixes
authorSean Hefty <sean.hefty@intel.com>
Thu, 18 Feb 2010 21:49:14 +0000 (21:49 +0000)
committerSean Hefty <sean.hefty@intel.com>
Thu, 18 Feb 2010 21:49:14 +0000 (21:49 +0000)
commit8e426c791f06402b3df33fd90e5fcbca322c5321
treee93880403bacd50db73964f66c753d4a919722c2
parent8a4c837c8efb406b844f1386c2493d506bd02346
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@2701 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/dapl2/dapl/openib_cma/cm.c
trunk/ulp/dapl2/dapl/openib_cma/device.c
trunk/ulp/dapl2/dapl/openib_scm/cm.c
trunk/ulp/dapl2/dapl/openib_scm/device.c
trunk/ulp/dapl2/dapl/openib_ucm/cm.c
trunk/ulp/dapl2/dapl/openib_ucm/device.c