Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263807
b: refs/heads/master
c: 3ee17f5
h: refs/heads/master
i:
  263805: 9f22bfe
  263803: 68f9975
  263799: 1d66222
  263791: 4adf075
  263775: 07b2892
  263743: 583067f
  263679: 9b318b9
v: v3
  • Loading branch information
Yi Zou authored and James Bottomley committed Aug 29, 2011
1 parent 4346587 commit 8031f3f
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 21cc0bd3a9e524b44a4f0ff05ac612aa0ff1a26e
refs/heads/master: 3ee17f59c5378af8d245f82498e3919b7de2ab40
8 changes: 6 additions & 2 deletions trunk/drivers/scsi/libfc/fc_exch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,7 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
struct fc_exch *ep;
struct fc_seq *sp = NULL;
struct fc_frame_header *fh;
struct fc_fcp_pkt *fsp = NULL;
int rc = 1;

ep = fc_exch_alloc(lport, fp);
Expand All @@ -2003,8 +2004,10 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
fc_exch_setup_hdr(ep, fp, ep->f_ctl);
sp->cnt++;

if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD)
if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) {
fsp = fr_fsp(fp);
fc_fcp_ddp_setup(fr_fsp(fp), ep->xid);
}

if (unlikely(lport->tt.frame_send(lport, fp)))
goto err;
Expand All @@ -2018,7 +2021,8 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
spin_unlock_bh(&ep->ex_lock);
return sp;
err:
fc_fcp_ddp_done(fr_fsp(fp));
if (fsp)
fc_fcp_ddp_done(fsp);
rc = fc_exch_done_locked(ep);
spin_unlock_bh(&ep->ex_lock);
if (!rc)
Expand Down

0 comments on commit 8031f3f

Please sign in to comment.