From: sleybo Date: Sun, 10 Dec 2006 11:15:33 +0000 (+0000) Subject: [IBAL] deref the ci_ca->obj in case that update fail. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b2b8dbe1b40c789baef87aceb19cdf432f45fa33;p=~shefty%2Frdma-win.git [IBAL] deref the ci_ca->obj in case that update fail. Singed-off-by:Anatoly Lisenko (anatolyl@voltaire.com) git-svn-id: svn://openib.tc.cornell.edu/gen1@555 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/core/al/user/ual_mgr.c b/trunk/core/al/user/ual_mgr.c index 2abf6a22..c1ebe829 100644 --- a/trunk/core/al/user/ual_mgr.c +++ b/trunk/core/al/user/ual_mgr.c @@ -1010,6 +1010,9 @@ __process_misc_cb( if( status != IB_SUCCESS) { AL_PRINT(TRACE_LEVEL_ERROR ,AL_DBG_ERROR , ("update CA attributes returned %#x.\n", status) ); + + /* Dereference the CA now. */ + deref_al_obj( &p_ci_ca->obj ); break; } if ( p_old_ca_attr )