Commit d60e9eec authored by Finn Thain's avatar Finn Thain Committed by Martin K. Petersen

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: default avatarStan Johnson <userm57@yahoo.com>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent c69edff5
...@@ -1951,6 +1951,8 @@ static int esp_process_event(struct esp *esp) ...@@ -1951,6 +1951,8 @@ static int esp_process_event(struct esp *esp)
scsi_esp_cmd(esp, ESP_CMD_NULL); scsi_esp_cmd(esp, ESP_CMD_NULL);
} }
esp->msg_out_len = 0;
esp_event(esp, ESP_EVENT_CHECK_PHASE); esp_event(esp, ESP_EVENT_CHECK_PHASE);
goto again; goto again;
case ESP_EVENT_MSGIN: case ESP_EVENT_MSGIN:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment