would free the MAD allocated in al_cep_pre_req, but not change the state.
If al_cep_listen fails, the state wouldn't be changed to reflect that the MAD
was returned and a subsequent call would attempt to free a NULL MAD.
git-svn-id: svn://openib.tc.cornell.edu/gen1@62
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
CL_ASSERT( p_cep->p_mad );\r
ib_put_mad( p_cep->p_mad );\r
p_cep->p_mad = NULL;\r
+ /* Must change state here in case listen fails */\r
+ p_cep->state = CEP_STATE_IDLE;\r
/* Fall through. */\r
case CEP_STATE_IDLE:\r
break;\r