Fixed issue where parent object pointer was set even if attach_al_obj fails.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jul 2005 00:18:11 +0000 (00:18 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Jul 2005 00:18:11 +0000 (00:18 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@45 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_common.c

index b34bad6..6b7999e 100644 (file)
@@ -290,7 +290,10 @@ attach_al_obj(
 #ifdef CL_KERNEL\r
                        p_child_obj->hdl = al_hdl_insert_obj( p_child_obj );\r
                        if( p_child_obj->hdl == AL_INVALID_HANDLE )\r
+                       {\r
+                               p_child_obj->p_parent_obj = NULL;\r
                                return IB_INSUFFICIENT_MEMORY;\r
+                       }\r
 #endif\r
                }\r
                else\r