From: Finn Thain Date: Fri, 4 Aug 2017 05:43:20 +0000 (-0400) Subject: scsi: esp_scsi: Always clear msg_out_len after MESSAGE OUT phase X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d60e9eec95d2e81253eaf3c39ac8baf4830d0472;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git scsi: esp_scsi: Always clear msg_out_len after MESSAGE OUT phase After sending a message, always clear esp->msg_out_len. Otherwise, eh_abort_handler may subsequently fail to send an ABORT TASK SET message. Tested-by: Stan Johnson Signed-off-by: Finn Thain Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 4d1e08a87274..c3fc34b9964d 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -1951,6 +1951,8 @@ again: scsi_esp_cmd(esp, ESP_CMD_NULL); } + esp->msg_out_len = 0; + esp_event(esp, ESP_EVENT_CHECK_PHASE); goto again; case ESP_EVENT_MSGIN: