Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1328
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
}\r
\r
cl_spinlock_release( &p_obj->lock );\r
+}\r
+\r
\r
+void\r
+cleanup_al(\r
+ IN al_obj_t *p_obj )\r
+{\r
/* Cleanup any left-over connections. */\r
- al_cep_cleanup_al( h_al );\r
+ al_cep_cleanup_al( PARENT_STRUCT( p_obj, ib_al_t, obj ) );\r
}\r
\r
\r
-\r
static void\r
__free_mads(\r
IN const ib_al_handle_t h_al )\r
IN al_obj_t *p_obj );\r
\r
\r
+void\r
+cleanup_al(\r
+ IN al_obj_t *p_obj );\r
+\r
+\r
void\r
free_al(\r
IN al_obj_t *p_obj );\r
\r
/* Initialize the base object. */\r
status = init_al_obj( &h_al->obj, NULL, FALSE,\r
- destroying_al, NULL, free_al );\r
+ destroying_al, cleanup_al, free_al );\r
if( status != IB_SUCCESS )\r
{\r
free_al( &h_al->obj );\r