From: ihsinme Date: Wed, 24 Feb 2021 21:37:14 +0000 (+0300) Subject: fix loop with unreachable exit condition X-Git-Tag: fio-3.27~32^2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=75094a8ba8dfbb8f072e9bb0a8a01fb91e9a24a2 fix loop with unreachable exit condition the essence of the error lies in a possible hit in the eternal cycle while, when exiting the higher cycle by means of break. Signed-off-by: Sergey Valentey --- diff --git a/server.c b/server.c index 1b65297e..8daefbab 100644 --- a/server.c +++ b/server.c @@ -1909,7 +1909,7 @@ static int fio_append_iolog_gz(struct sk_entry *first, struct io_log *log) break; } flist_add_tail(&entry->list, &first->next); - } while (ret != Z_STREAM_END); + } ret = deflateEnd(&stream); if (ret == Z_OK)