[openib-general] [PATCH] iser: bugfix for connect error flow
Or Gerlitz
ogerlitz at voltaire.com
Tue Feb 7 05:26:03 PST 2006
bugfix for connect error flow when getting RDMA_CM_EVENT_ADDR_ERROR
Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>
Index: iser_verbs.c
===================================================================
--- iser_verbs.c (revision 5329)
+++ iser_verbs.c (revision 5330)
@@ -626,7 +626,9 @@ void iser_conn_release(struct iser_conn
if (atomic_read(&p_iser_conn->state) == ISER_CONN_DOWN) {
iser_free_ib_conn_res(p_iser_conn); /* qp/id freed only once */
p_iser_conn->p_adaptor = NULL;
- iser_adaptor_try_release(p_iser_adaptor);
+ /* on EVENT_ADDR_ERROR there's no adaptor yet for this conn */
+ if (p_iser_adaptor != NULL)
+ iser_adaptor_try_release(p_iser_adaptor);
p_iscsi_conn = p_iser_conn->p_iscsi_conn;
if (p_iscsi_conn != NULL && p_iscsi_conn->ff_mode_enabled) {
p_iscsi_conn->ff_mode_enabled = 0;
More information about the general
mailing list