diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libiscsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 36f520b9260e..c989bc6180b3 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -1337,6 +1337,7 @@ void iscsi_session_teardown(struct iscsi_cls_session *cls_session) | |||
1337 | { | 1337 | { |
1338 | struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); | 1338 | struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); |
1339 | struct iscsi_session *session = iscsi_hostdata(shost->hostdata); | 1339 | struct iscsi_session *session = iscsi_hostdata(shost->hostdata); |
1340 | struct module *owner = cls_session->transport->owner; | ||
1340 | 1341 | ||
1341 | scsi_remove_host(shost); | 1342 | scsi_remove_host(shost); |
1342 | 1343 | ||
@@ -1345,7 +1346,7 @@ void iscsi_session_teardown(struct iscsi_cls_session *cls_session) | |||
1345 | 1346 | ||
1346 | iscsi_destroy_session(cls_session); | 1347 | iscsi_destroy_session(cls_session); |
1347 | scsi_host_put(shost); | 1348 | scsi_host_put(shost); |
1348 | module_put(cls_session->transport->owner); | 1349 | module_put(owner); |
1349 | } | 1350 | } |
1350 | EXPORT_SYMBOL_GPL(iscsi_session_teardown); | 1351 | EXPORT_SYMBOL_GPL(iscsi_session_teardown); |
1351 | 1352 | ||