From: Christof Schmitt Date: Fri, 18 Apr 2008 10:51:57 +0000 (+0200) Subject: [SCSI] zfcp: Fix error handling for blocked unit for send FCP command X-Git-Tag: v2.6.26-rc1~1140^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57b7658aed76f1763416878ead9be4ffa288b7a3;p=profile%2Fivi%2Fkernel-x86-ivi.git [SCSI] zfcp: Fix error handling for blocked unit for send FCP command In the case the unit is blocked, zfcp_unit_get has not been called yet, so the error handling path should not call zfcp_unit_put. Signed-off-by: Christof Schmitt Signed-off-by: Martin Peschke Signed-off-by: James Bottomley --- diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c index 3211dcc..7c3f028 100644 --- a/drivers/s390/scsi/zfcp_fsf.c +++ b/drivers/s390/scsi/zfcp_fsf.c @@ -3562,8 +3562,8 @@ zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *adapter, send_failed: no_fit: failed_scsi_cmnd: - unit_blocked: zfcp_unit_put(unit); + unit_blocked: zfcp_fsf_req_free(fsf_req); fsf_req = NULL; scsi_cmnd->host_scribble = NULL;