Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Finn Thain and committed by
Martin K. Petersen
d60e9eec c69edff5

+2
+2
drivers/scsi/esp_scsi.c
··· 1951 1951 scsi_esp_cmd(esp, ESP_CMD_NULL); 1952 1952 } 1953 1953 1954 + esp->msg_out_len = 0; 1955 + 1954 1956 esp_event(esp, ESP_EVENT_CHECK_PHASE); 1955 1957 goto again; 1956 1958 case ESP_EVENT_MSGIN: