Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348839
b: refs/heads/master
c: edec8df
h: refs/heads/master
i:
  348837: 82d9d0a
  348835: 7458be5
  348831: 2a9edd5
v: v3
  • Loading branch information
Mark Rustad authored and Nicholas Bellinger committed Jan 11, 2013
1 parent 90d9771 commit 419bfd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2eeba214bcd0215b7f558cab6420e5fd153042b
refs/heads/master: edec8dfefa1f372b2dd8197da555352e76a10c03
10 changes: 8 additions & 2 deletions trunk/drivers/target/tcm_fc/tfc_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,11 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len,

tport = ft_tport_create(rdata->local_port);
if (!tport)
return 0; /* not a target for this local port */
goto not_target; /* not a target for this local port */

acl = ft_acl_get(tport->tpg, rdata);
if (!acl)
return 0;
goto not_target; /* no target for this remote */

if (!rspp)
goto fill;
Expand Down Expand Up @@ -402,6 +402,12 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len,
fcp_parm &= ~FCP_SPPF_RETRY;
spp->spp_params = htonl(fcp_parm | FCP_SPPF_TARG_FCN);
return FC_SPP_RESP_ACK;

not_target:
fcp_parm = ntohl(spp->spp_params);
fcp_parm &= ~FCP_SPPF_TARG_FCN;
spp->spp_params = htonl(fcp_parm);
return 0;
}

/**
Expand Down

0 comments on commit 419bfd0

Please sign in to comment.