diff options
author | Yi Zou <yi.zou@intel.com> | 2011-05-16 19:45:40 -0400 |
---|---|---|
committer | James Bottomley <jbottomley@parallels.com> | 2011-05-24 12:36:51 -0400 |
commit | 6a716a8535ea8ed7676cea1e122f1c3d02e55b6b (patch) | |
tree | 038539b13724f49ceac3a4f1fd7fe31911a12b32 /drivers/scsi/libfc/fc_exch.c | |
parent | 83383dd11a445bbe493c75b9c88c243aa43df8d7 (diff) |
[SCSI] libfc: release DDP context if frame_send() fails
In case frame_send() fails, make sure to let the underlying HW release the DDP
context that has already been set up before calling frame_send().
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'drivers/scsi/libfc/fc_exch.c')
-rw-r--r-- | drivers/scsi/libfc/fc_exch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c index 77035a746f60..4d2994d38fb9 100644 --- a/drivers/scsi/libfc/fc_exch.c +++ b/drivers/scsi/libfc/fc_exch.c | |||
@@ -1978,6 +1978,7 @@ static struct fc_seq *fc_exch_seq_send(struct fc_lport *lport, | |||
1978 | spin_unlock_bh(&ep->ex_lock); | 1978 | spin_unlock_bh(&ep->ex_lock); |
1979 | return sp; | 1979 | return sp; |
1980 | err: | 1980 | err: |
1981 | fc_fcp_ddp_done(fr_fsp(fp)); | ||
1981 | rc = fc_exch_done_locked(ep); | 1982 | rc = fc_exch_done_locked(ep); |
1982 | spin_unlock_bh(&ep->ex_lock); | 1983 | spin_unlock_bh(&ep->ex_lock); |
1983 | if (!rc) | 1984 | if (!rc) |