/* Roll back the state change. */\r
__reject_mad( p_port_cep, p_cep, p_mad, IB_REJ_STALE_CONN );\r
p_cep->state = old_state;\r
- /*\r
- * Clear the remote QPN and comm ID so that we don't try\r
- * to remove the CEP from those maps.\r
- */\r
- p_cep->remote_qpn = 0;\r
- p_cep->remote_comm_id = 0;\r
status = __process_stale( p_cep );\r
}\r
else\r
\r
p_cep = __insert_by_qpn( p_new_cep );\r
if( p_cep != p_new_cep )\r
- goto done;\r
+ goto err;\r
\r
p_cep = __insert_by_id( p_new_cep );\r
if( p_cep != p_new_cep )\r
{\r
cl_rbmap_remove_item(\r
&gp_cep_mgr->conn_qp_map, &p_new_cep->rem_qp_item );\r
- p_cep->remote_qpn = 0;\r
+err:\r
+ /*\r
+ * Clear the remote QPN and comm ID so that we don't try\r
+ * to remove the CEP from those maps.\r
+ */\r
+ p_new_cep->remote_qpn = 0;\r
+ p_new_cep->remote_comm_id = 0;\r
}\r
\r
-done:\r
AL_EXIT( AL_DBG_CM );\r
return p_cep;\r
}\r