aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r--drivers/scsi/fcoe/fcoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 81601269f4cd..14a4017a1535 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -466,6 +466,9 @@ static int fcoe_if_destroy(struct net_device *netdev)
466 /* tear-down the FCoE controller */ 466 /* tear-down the FCoE controller */
467 fcoe_ctlr_destroy(&fc->ctlr); 467 fcoe_ctlr_destroy(&fc->ctlr);
468 468
469 /* Free queued packets for the per-CPU receive threads */
470 fcoe_percpu_clean(lp);
471
469 /* Cleanup the fc_lport */ 472 /* Cleanup the fc_lport */
470 fc_lport_destroy(lp); 473 fc_lport_destroy(lp);
471 fc_fcp_destroy(lp); 474 fc_fcp_destroy(lp);
@@ -478,9 +481,6 @@ static int fcoe_if_destroy(struct net_device *netdev)
478 if (lp->emp) 481 if (lp->emp)
479 fc_exch_mgr_free(lp->emp); 482 fc_exch_mgr_free(lp->emp);
480 483
481 /* Free the per-CPU receive threads */
482 fcoe_percpu_clean(lp);
483
484 /* Free existing skbs */ 484 /* Free existing skbs */
485 fcoe_clean_pending_queue(lp); 485 fcoe_clean_pending_queue(lp);
486 486