[IBAL] deref the ci_ca->obj in case that update fail.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 10 Dec 2006 11:15:33 +0000 (11:15 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 10 Dec 2006 11:15:33 +0000 (11:15 +0000)
Singed-off-by:Anatoly Lisenko (anatolyl@voltaire.com)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@555 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/user/ual_mgr.c

index 2abf6a2..c1ebe82 100644 (file)
@@ -1010,6 +1010,9 @@ __process_misc_cb(
                        if( status != IB_SUCCESS) {\r
                                AL_PRINT(TRACE_LEVEL_ERROR ,AL_DBG_ERROR ,\r
                                        ("update CA attributes returned %#x.\n", status) );\r
+       \r
+                               /* Dereference the CA now. */\r
+                               deref_al_obj( &p_ci_ca->obj );\r
                                break;\r
                        }\r
                        if ( p_old_ca_attr )\r