aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index d23a538a9dfc..9f9600b67001 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -854,7 +854,6 @@ static void fcoe_if_destroy(struct fc_lport *lport)
854 854
855 /* Cleanup the fc_lport */ 855 /* Cleanup the fc_lport */
856 fc_lport_destroy(lport); 856 fc_lport_destroy(lport);
857 fc_fcp_destroy(lport);
858 857
859 /* Stop the transmit retry timer */ 858 /* Stop the transmit retry timer */
860 del_timer_sync(&port->timer); 859 del_timer_sync(&port->timer);
@@ -876,6 +875,9 @@ static void fcoe_if_destroy(struct fc_lport *lport)
876 fc_remove_host(lport->host); 875 fc_remove_host(lport->host);
877 scsi_remove_host(lport->host); 876 scsi_remove_host(lport->host);
878 877
878 /* Destroy lport scsi_priv */
879 fc_fcp_destroy(lport);
880
879 /* There are no more rports or I/O, free the EM */ 881 /* There are no more rports or I/O, free the EM */
880 fc_exch_mgr_free(lport); 882 fc_exch_mgr_free(lport);
881 883