aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-04-18 06:51:57 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-04-18 12:50:41 -0400
commit57b7658aed76f1763416878ead9be4ffa288b7a3 (patch)
treedb71d536ac49b2bd63e43d1fc840f33e909fac7e /drivers/s390
parent6071d7ec36054e78f02f7d5a66c3784aeb65ce92 (diff)
[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 <christof.schmitt@de.ibm.com> Signed-off-by: Martin Peschke <mp3@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
index 3211dcc59543..7c3f02816e95 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,
3562 send_failed: 3562 send_failed:
3563 no_fit: 3563 no_fit:
3564 failed_scsi_cmnd: 3564 failed_scsi_cmnd:
3565 unit_blocked:
3566 zfcp_unit_put(unit); 3565 zfcp_unit_put(unit);
3566 unit_blocked:
3567 zfcp_fsf_req_free(fsf_req); 3567 zfcp_fsf_req_free(fsf_req);
3568 fsf_req = NULL; 3568 fsf_req = NULL;
3569 scsi_cmnd->host_scribble = NULL; 3569 scsi_cmnd->host_scribble = NULL;