aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/fcoe/fcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 0c825c0944f7..ba75a98c960c 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -851,6 +851,7 @@ static void fcoe_if_destroy(struct fc_lport *lport)
851 851
852 /* Release the Scsi_Host */ 852 /* Release the Scsi_Host */
853 scsi_host_put(lport->host); 853 scsi_host_put(lport->host);
854 module_put(THIS_MODULE);
854} 855}
855 856
856/** 857/**
@@ -2034,7 +2035,6 @@ static int fcoe_destroy(const char *buffer, struct kernel_param *kp)
2034 fcoe_interface_cleanup(fcoe); 2035 fcoe_interface_cleanup(fcoe);
2035 /* RTNL mutex is dropped by fcoe_if_destroy */ 2036 /* RTNL mutex is dropped by fcoe_if_destroy */
2036 fcoe_if_destroy(fcoe->ctlr.lp); 2037 fcoe_if_destroy(fcoe->ctlr.lp);
2037 module_put(THIS_MODULE);
2038 2038
2039out_putdev: 2039out_putdev:
2040 dev_put(netdev); 2040 dev_put(netdev);