aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_io.c b/drivers/scsi/bnx2fc/bnx2fc_io.c
index 8d4626c07a12..c661ccd3d496 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_io.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_io.c
@@ -685,8 +685,8 @@ int bnx2fc_init_mp_req(struct bnx2fc_cmd *io_req)
685static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags) 685static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
686{ 686{
687 struct fc_lport *lport; 687 struct fc_lport *lport;
688 struct fc_rport *rport = starget_to_rport(scsi_target(sc_cmd->device)); 688 struct fc_rport *rport;
689 struct fc_rport_libfc_priv *rp = rport->dd_data; 689 struct fc_rport_libfc_priv *rp;
690 struct fcoe_port *port; 690 struct fcoe_port *port;
691 struct bnx2fc_interface *interface; 691 struct bnx2fc_interface *interface;
692 struct bnx2fc_rport *tgt; 692 struct bnx2fc_rport *tgt;
@@ -704,6 +704,7 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
704 unsigned long start = jiffies; 704 unsigned long start = jiffies;
705 705
706 lport = shost_priv(host); 706 lport = shost_priv(host);
707 rport = starget_to_rport(scsi_target(sc_cmd->device));
707 port = lport_priv(lport); 708 port = lport_priv(lport);
708 interface = port->priv; 709 interface = port->priv;
709 710
@@ -712,6 +713,7 @@ static int bnx2fc_initiate_tmf(struct scsi_cmnd *sc_cmd, u8 tm_flags)
712 rc = FAILED; 713 rc = FAILED;
713 goto tmf_err; 714 goto tmf_err;
714 } 715 }
716 rp = rport->dd_data;
715 717
716 rc = fc_block_scsi_eh(sc_cmd); 718 rc = fc_block_scsi_eh(sc_cmd);
717 if (rc) 719 if (rc)