]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/decompress_unlz4.c: always set an error return code on failures
authorJan Beulich <JBeulich@suse.com>
Fri, 3 Jan 2014 03:10:36 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:36 +0000 (14:10 +1100)
commit4d6ff2cbe16e8339a8c00c4bfd83e79a3478eda1
tree26988543d75afe21a5be4704eef76fd09ccf3e63
parent6923cc28f689ad89b30cf5afb97c22fb3037d734
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: Matthew Daley <mattjd@gmail.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Kyungsik Lee <kyungsik.lee@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/decompress_unlz4.c