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 --- lib/sqfs/blk_proc/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqfs/blk_proc/internal.h') diff --git a/lib/sqfs/blk_proc/internal.h b/lib/sqfs/blk_proc/internal.h index b5af751..8cb1a23 100644 --- a/lib/sqfs/blk_proc/internal.h +++ b/lib/sqfs/blk_proc/internal.h @@ -59,13 +59,13 @@ struct sqfs_block_processor_t { sqfs_block_t *done; bool terminate; size_t backlog; + int status; /* used by main thread only */ uint32_t enqueue_id; uint32_t dequeue_id; unsigned int num_workers; - int status; size_t max_backlog; size_t devblksz; -- cgit v1.2.3