From 8af8ab7e8a52cf8ec7844173988c4d946a6194fb Mon Sep 17 00:00:00 2001 From: SarahW Date: Mon, 4 Dec 2017 18:25:42 +0000 Subject: [PATCH] Don't fatal() on AHA-1542C/BT-545S when SCSI device fails to request a command. --- src/scsi_aha1540.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scsi_aha1540.c b/src/scsi_aha1540.c index 520ce06..1d980b5 100644 --- a/src/scsi_aha1540.c +++ b/src/scsi_aha1540.c @@ -1803,7 +1803,11 @@ static void process_scsi(aha154x_t *scsi) /*Device should now be selected*/ if (!wait_for_bus(&scsi->bus, BUS_CD, 1)) - fatal("Device failed to request command\n"); + { + pclog("Device failed to request command\n"); + scsi->scsi_state = SCSI_STATE_SELECT_FAILED; + break; + } scsi->scsi_state = SCSI_STATE_SEND_COMMAND; break;