Don't use lp->dns_rp->port_id or rport == lp->dns_rp

Signed-off-by: Robert Love <[EMAIL PROTECTED]>
---

 drivers/scsi/libfc/fc_ns.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/libfc/fc_ns.c b/drivers/scsi/libfc/fc_ns.c
index 71e31e3..72b037d 100644
--- a/drivers/scsi/libfc/fc_ns.c
+++ b/drivers/scsi/libfc/fc_ns.c
@@ -249,7 +249,7 @@ static void fc_ns_enter_reg_ft(struct fc_lport *lp)
                                                  fc_ns_resp, lp,
                                                  lp->e_d_tov,
                                                  lp->fid,
-                                                 lp->dns_rp->port_id,
+                                                 FC_FID_DIR_SERV,
                                                  FC_FC_SEQ_INIT |
                                                  FC_FC_END_SEQ))
                                fc_ns_retry(lp);
@@ -369,7 +369,7 @@ static void fc_block_rports(struct fc_lport *lp)
        spin_lock_irqsave(shost->host_lock, flags);
        list_for_each_entry(rport, &fc_host_rports(shost), peers) {
                /* protect the name service remote port */
-               if (rport == lp->dns_rp)
+               if (rport->port_id == FC_FID_DIR_SERV)
                        continue;
                if (rport->port_state != FC_PORTSTATE_ONLINE)
                        continue;
@@ -648,7 +648,7 @@ static void fc_ns_gpn_ft_req(struct fc_lport *lp)
                                          fc_ns_gpn_ft_resp,
                                          lp, lp->e_d_tov,
                                          lp->fid,
-                                         lp->dns_rp->port_id,
+                                         FC_FID_DIR_SERV,
                                          FC_FC_SEQ_INIT | FC_FC_END_SEQ);
        }
        if (error || sp == NULL)
@@ -983,7 +983,7 @@ static void fc_ns_enter_reg_pn(struct fc_lport *lp)
                                  fc_ns_resp, lp,
                                  lp->e_d_tov,
                                  lp->fid,
-                                 lp->dns_rp->port_id,
+                                 FC_FID_DIR_SERV,
                                  FC_FC_SEQ_INIT | FC_FC_END_SEQ))
                fc_ns_retry(lp);
 }

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to