[IPOIB] move the adapter state to active only if the old state is init.
[mirror/winof/.git] / ulp / ipoib / kernel / ipoib_adapter.c
index d31380e..6b1e0b0 100644 (file)
@@ -951,7 +951,7 @@ ipoib_set_active(
        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