From 824423a9d2395514101cb837c2ede5473cf106ce Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 23 Sep 2019 23:33:19 +0200 Subject: Cleanup block processor error handling If an error happpens, immediately stop everything and report only the first error that happened. This also fixes a memory leak in the error paths of the serial and pthread based block processors. Signed-off-by: David Oberhollenzer --- include/sqfs/block_processor.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include') diff --git a/include/sqfs/block_processor.h b/include/sqfs/block_processor.h index 2086a3d..5b7b3e0 100644 --- a/include/sqfs/block_processor.h +++ b/include/sqfs/block_processor.h @@ -86,12 +86,7 @@ typedef enum { /** * @brief Set by compressor worker if the block was actually compressed. */ - SQFS_BLK_IS_COMPRESSED = 0x4000, - - /** - * @brief Set by compressor worker if compression failed. - */ - SQFS_BLK_COMPRESS_ERROR = 0x8000, + SQFS_BLK_IS_COMPRESSED = 0x8000, /** * @brief The combination of all flags that are user settable. -- cgit v1.2.3