]> git.openfabrics.org - ~shefty/rdma-win.git/commit
dapl: avoid accessing cm_ptr after queuing to cr_thread
authorSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 00:28:28 +0000 (16:28 -0800)
committerSean Hefty <sean.hefty@intel.com>
Fri, 5 Feb 2010 00:28:28 +0000 (16:28 -0800)
commiteae59391d42fc62a1790bad6abf914274720f81c
treeb022ea9e3b49aa9b9088a3e8e3d23c0d2de66303
parent33cc4404015c647a832803d6f029938d31c0ba67
dapl: avoid accessing cm_ptr after queuing to cr_thread

It's possible that once a cm_ptr has been added to the hca list, that the
cr_thread can remove it from the list and process it or delete it.  To avoid
any potential issue, do not reference the cm_ptr after placing it on the hca list.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
trunk/ulp/dapl2/dapl/openib_scm/cm.c