[SCSI] libfc: release DDP context if frame_send() fails
authorYi Zou <yi.zou@intel.com>
Mon, 16 May 2011 23:45:40 +0000 (16:45 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:36:51 +0000 (12:36 -0400)
commit6a716a8535ea8ed7676cea1e122f1c3d02e55b6b
tree038539b13724f49ceac3a4f1fd7fe31911a12b32
parent83383dd11a445bbe493c75b9c88c243aa43df8d7
[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>
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_libfc.h