Skip to content
Snippets Groups Projects
Commit 2a1d689c authored by Jan Beulich's avatar Jan Beulich Committed by Linus Torvalds
Browse files

lib/decompress_unlz4.c: always set an error return code on failures


"ret", being set to -1 early on, gets cleared by the first invocation of
lz4_decompress()/lz4_decompress_unknownoutputsize(), and hence subsequent
failures wouldn't be noticed by the caller without setting it back to -1
right after those calls.

Reported-by: default avatarMatthew Daley <mattjd@gmail.com>
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Cc: Kyungsik Lee <kyungsik.lee@lge.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 40e2c71d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment