Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57b7658a authored by Christof Schmitt's avatar Christof Schmitt Committed by James Bottomley
Browse files

[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: default avatarChristof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: default avatarMartin Peschke <mp3@de.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 6071d7ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3562,8 +3562,8 @@ zfcp_fsf_send_fcp_command_task(struct zfcp_adapter *adapter,
 send_failed:
 send_failed:
 no_fit:
 no_fit:
 failed_scsi_cmnd:
 failed_scsi_cmnd:
 unit_blocked:
	zfcp_unit_put(unit);
	zfcp_unit_put(unit);
 unit_blocked:
	zfcp_fsf_req_free(fsf_req);
	zfcp_fsf_req_free(fsf_req);
	fsf_req = NULL;
	fsf_req = NULL;
	scsi_cmnd->host_scribble = NULL;
	scsi_cmnd->host_scribble = NULL;