Commit 57b7658aed76f1763416878ead9be4ffa288b7a3

Authored by Christof Schmitt
Committed by James Bottomley
1 parent 6071d7ec36

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/s390/scsi/zfcp_fsf.c
... ... @@ -3562,8 +3562,8 @@
3562 3562 send_failed:
3563 3563 no_fit:
3564 3564 failed_scsi_cmnd:
3565   - unit_blocked:
3566 3565 zfcp_unit_put(unit);
  3566 + unit_blocked:
3567 3567 zfcp_fsf_req_free(fsf_req);
3568 3568 fsf_req = NULL;
3569 3569 scsi_cmnd->host_scribble = NULL;