Skip to content

Commit 792590c

Browse files
author
Phillip Lougher
committed
squashfs: fix locking bug in zlib wrapper
Fix locking bug in zlib wrapper introduced by recent decompressor changes. Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
1 parent 0d0fb0f commit 792590c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/squashfs/zlib_wrapper.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ static int zlib_uncompress(struct squashfs_sb_info *msblk, void **buffer,
128128
goto release_mutex;
129129
}
130130

131+
length = stream->total_out;
131132
mutex_unlock(&msblk->read_data_mutex);
132-
return stream->total_out;
133+
return length;
133134

134135
release_mutex:
135136
mutex_unlock(&msblk->read_data_mutex);

0 commit comments

Comments
 (0)