diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libiscsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 7c75771c77ff..6346a913c36e 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -1597,6 +1597,9 @@ void iscsi_conn_teardown(struct iscsi_cls_conn *cls_conn) | |||
1597 | wake_up(&conn->ehwait); | 1597 | wake_up(&conn->ehwait); |
1598 | } | 1598 | } |
1599 | 1599 | ||
1600 | /* flush queued up work because we free the connection below */ | ||
1601 | scsi_flush_work(session->host); | ||
1602 | |||
1600 | spin_lock_bh(&session->lock); | 1603 | spin_lock_bh(&session->lock); |
1601 | kfree(conn->data); | 1604 | kfree(conn->data); |
1602 | kfree(conn->persistent_address); | 1605 | kfree(conn->persistent_address); |