From e6a00a7eff118e7f67a874d6381fd1bffee24668 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 10 Mar 2018 12:42:20 +0200 Subject: [PATCH] Fix hang when SCSI bus was empty. --- a2091.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a2091.cpp b/a2091.cpp index 200d6428..6c8cba72 100644 --- a/a2091.cpp +++ b/a2091.cpp @@ -313,6 +313,7 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in freencrunit(*wd); *wd = NULL; } + configured = true; if ((*wd) == NULL) { scsi = xcalloc(struct wd_state, 1); for (int i = 0; i < MAX_SCSI_UNITS; i++) { @@ -328,7 +329,6 @@ static struct wd_state *allocscsi(struct wd_state **wd, struct romconfig *rc, in } } } - configured = true; return *wd; } -- 2.47.3