]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf7f5b4ed4b4cd79c0642ce070f262fbd9404195a
tree038539b13724f49ceac3a4f1fd7fe31911a12b32
parentd44d9ce23e8d881379a240e5321d5d5776005d2a
[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