Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173600
b: refs/heads/master
c: 5e472d0
h: refs/heads/master
v: v3
  • Loading branch information
Yi Zou authored and James Bottomley committed Dec 4, 2009
1 parent a0e0519 commit 1b9ccf4
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: 85b5893ca97c69e409ecbb5ee90a5d99882369c4
refs/heads/master: 5e472d077f45de4f37365171bd742f18b3ef20de
8 changes: 6 additions & 2 deletions trunk/drivers/scsi/libfc/fc_fcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,13 @@ static void fc_fcp_ddp_done(struct fc_fcp_pkt *fsp)
if (!fsp)
return;

if (fsp->xfer_ddp == FC_XID_UNKNOWN)
return;

lp = fsp->lp;
if (fsp->xfer_ddp && lp->tt.ddp_done) {
if (lp->tt.ddp_done) {
fsp->xfer_len = lp->tt.ddp_done(lp, fsp->xfer_ddp);
fsp->xfer_ddp = 0;
fsp->xfer_ddp = FC_XID_UNKNOWN;
}
}

Expand Down Expand Up @@ -1708,6 +1711,7 @@ int fc_queuecommand(struct scsi_cmnd *sc_cmd, void (*done)(struct scsi_cmnd *))
fsp->cmd = sc_cmd; /* save the cmd */
fsp->lp = lp; /* save the softc ptr */
fsp->rport = rport; /* set the remote port ptr */
fsp->xfer_ddp = FC_XID_UNKNOWN;
sc_cmd->scsi_done = done;

/*
Expand Down

0 comments on commit 1b9ccf4

Please sign in to comment.