From 40acb3fe1e79a3ca441ef38325a357e02fc96a6d Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Thu, 13 Aug 2020 11:50:46 +0200 Subject: [PATCH] Fix DFLTCC ignoring flush modes when avail_in == 0 --- arch/s390/dfltcc_deflate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/s390/dfltcc_deflate.c b/arch/s390/dfltcc_deflate.c index a088a731..4692789f 100644 --- a/arch/s390/dfltcc_deflate.c +++ b/arch/s390/dfltcc_deflate.c @@ -135,7 +135,8 @@ again: /* Clear history. */ if (flush == Z_FULL_FLUSH) param->hl = 0; - *result = need_more; + /* Trigger block post-processing if necessary. */ + *result = no_flush ? need_more : block_done; return 1; } -- 2.47.2