]> git.openfabrics.org - ~shefty/rdma-win.git/commit
[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)
commit60191c862bb7a7d49a962751ce20016572a5acb8
treeaff24ee3842b26930b05a6a6ad93335ae35394bf
parentf2c42d8c9ea7ab7a87177f285581f3a6899108ca
[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@549 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/ulp/ipoib/kernel/ipoib_adapter.c