diff options
author | Mark Rustad <mark.d.rustad@intel.com> | 2013-03-20 07:17:55 +0000 |
---|---|---|
committer | Robert Love <robert.w.love@intel.com> | 2013-05-10 10:19:22 -0700 |
commit | 732bdb9d141879b1b5b357f934553fe827c1f46b (patch) | |
tree | 411cb7df1a171f1a885b5084dc7ecd3845bc7455 /drivers/scsi/libfc | |
parent | e6c10b7c5e0e7c6ecf7d60f502c7eeaf3361b48f (diff) | |
download | linux-732bdb9d141879b1b5b357f934553fe827c1f46b.tar.bz2 |
libfc: Correct check for initiator role
The service_params field is being checked against the symbol
FC_RPORT_ROLE_FCP_INITIATOR where it really should be checked
against FCP_SPPF_INIT_FCN.
Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Jack Morgan <jack.morgan@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Diffstat (limited to 'drivers/scsi/libfc')
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index d518d17e940f..6bbb9447b75d 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c @@ -1962,7 +1962,7 @@ static int fc_rport_fcp_prli(struct fc_rport_priv *rdata, u32 spp_len, rdata->flags |= FC_RP_FLAGS_RETRY; rdata->supported_classes = FC_COS_CLASS3; - if (!(lport->service_params & FC_RPORT_ROLE_FCP_INITIATOR)) + if (!(lport->service_params & FCP_SPPF_INIT_FCN)) return 0; spp->spp_flags |= rspp->spp_flags & FC_SPP_EST_IMG_PAIR; |