aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.c5
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c3
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c
index db43b3117168..0ab8c9cc3a78 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.c
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.c
@@ -573,10 +573,9 @@ iscsi_iser_ep_connect(struct Scsi_Host *shost, struct sockaddr *dst_addr,
573 573
574 err = iser_connect(ib_conn, NULL, (struct sockaddr_in *)dst_addr, 574 err = iser_connect(ib_conn, NULL, (struct sockaddr_in *)dst_addr,
575 non_blocking); 575 non_blocking);
576 if (err) { 576 if (err)
577 iscsi_destroy_endpoint(ep);
578 return ERR_PTR(err); 577 return ERR_PTR(err);
579 } 578
580 return ep; 579 return ep;
581} 580}
582 581
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index 14224ba44fd8..2dddabd8fcf9 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -613,8 +613,9 @@ id_failure:
613 ib_conn->cma_id = NULL; 613 ib_conn->cma_id = NULL;
614addr_failure: 614addr_failure:
615 ib_conn->state = ISER_CONN_DOWN; 615 ib_conn->state = ISER_CONN_DOWN;
616 iser_conn_put(ib_conn, 1); /* deref ib conn's cma id */
616connect_failure: 617connect_failure:
617 iser_conn_release(ib_conn, 1); 618 iser_conn_put(ib_conn, 1); /* deref ib conn deallocate */
618 return err; 619 return err;
619} 620}
620 621