Skip to content

Commit

Permalink
libfc: Correct check for initiator role
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Jack Morgan <[email protected]>
Signed-off-by: Robert Love <[email protected]>
  • Loading branch information
mdrustad authored and Robert Love committed May 10, 2013
1 parent e6c10b7 commit 732bdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libfc/fc_rport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 732bdb9

Please sign in to comment.