[IPOIB] move the adapter state to active only if the old state is init.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Nov 2006 07:21:02 +0000 (07:21 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 28 Nov 2006 07:21:02 +0000 (07:21 +0000)
commitcb09bb254b31febe449d07a0ecae76fabae02006
tree015c4740305f607555fa9a6cd2a6b0c4a221f6c8
parent1ca07186a71210446c7213dd03000c95aacb2a26
[IPOIB] move the adapter state to active only if the old state is init.
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/trunk@549 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/ipoib/kernel/ipoib_adapter.c