To prevent the following race:
The adapter start destruction and set the adapter->p_port to NULL.
And bcast_cb set the port to active and use p_adapter->p_port
git-svn-id: svn://openib.tc.cornell.edu/gen1@549
ad392aa1-c5ef-ae45-8dd8-
e69d62a5ef86
old_state = p_adapter->state;\r
\r
/* Change the state to indicate that we are now connected and live. */\r
- if( old_state != IB_PNP_PORT_REMOVE )\r
+ if( old_state == IB_PNP_PORT_INIT )\r
p_adapter->state = IB_PNP_PORT_ACTIVE;\r
\r
cl_obj_unlock( &p_adapter->obj );\r