Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f69ae0
)
* fix for 5722 openibnal: NULL dereference in kibnal_close_conn_locked
author
eeb
<eeb>
Thu, 3 Mar 2005 12:11:18 +0000
(12:11 +0000)
committer
eeb
<eeb>
Thu, 3 Mar 2005 12:11:18 +0000
(12:11 +0000)
lnet/klnds/openiblnd/openiblnd_cb.c
patch
|
blob
|
history
diff --git
a/lnet/klnds/openiblnd/openiblnd_cb.c
b/lnet/klnds/openiblnd/openiblnd_cb.c
index
3238b0e
..
c2929ba
100644
(file)
--- a/
lnet/klnds/openiblnd/openiblnd_cb.c
+++ b/
lnet/klnds/openiblnd/openiblnd_cb.c
@@
-1617,8
+1617,6
@@
kibnal_connreq_done (kib_conn_t *conn, int active, int status)
if (status == 0) {
/* connection established... */
LASSERT (state == IBNAL_CONN_CONNECTING);
- conn->ibc_state = IBNAL_CONN_ESTABLISHED;
-
if (!kibnal_peer_active(peer)) {
/* ...but peer deleted meantime */
status = -ECONNABORTED;
@@
-1632,6
+1630,7
@@
kibnal_connreq_done (kib_conn_t *conn, int active, int status)
/* Everything worked! */
peer->ibp_connecting--;
+ conn->ibc_state = IBNAL_CONN_ESTABLISHED;
/* +1 ref for ibc_list; caller(== CM)'s ref remains until
* the IB_CM_IDLE callback */