aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libiscsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r--drivers/scsi/libiscsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c
index 441e351b4456..5205ef2c29b2 100644
--- a/drivers/scsi/libiscsi.c
+++ b/drivers/scsi/libiscsi.c
@@ -1662,7 +1662,7 @@ void iscsi_session_teardown(struct iscsi_cls_session *cls_session)
1662 struct iscsi_session *session = iscsi_hostdata(shost->hostdata); 1662 struct iscsi_session *session = iscsi_hostdata(shost->hostdata);
1663 struct module *owner = cls_session->transport->owner; 1663 struct module *owner = cls_session->transport->owner;
1664 1664
1665 iscsi_unblock_session(cls_session); 1665 iscsi_remove_session(cls_session);
1666 scsi_remove_host(shost); 1666 scsi_remove_host(shost);
1667 1667
1668 iscsi_pool_free(&session->mgmtpool); 1668 iscsi_pool_free(&session->mgmtpool);
@@ -1677,7 +1677,7 @@ void iscsi_session_teardown(struct iscsi_cls_session *cls_session)
1677 kfree(session->hwaddress); 1677 kfree(session->hwaddress);
1678 kfree(session->initiatorname); 1678 kfree(session->initiatorname);
1679 1679
1680 iscsi_destroy_session(cls_session); 1680 iscsi_free_session(cls_session);
1681 scsi_host_put(shost); 1681 scsi_host_put(shost);
1682 module_put(owner); 1682 module_put(owner);
1683} 1683}