]> Git Repo - linux.git/commit - lib/decompress_unlz4.c
lib/decompress_unlz4.c: always set an error return code on failures
authorJan Beulich <[email protected]>
Thu, 23 Jan 2014 23:56:20 +0000 (15:56 -0800)
committerLinus Torvalds <[email protected]>
Fri, 24 Jan 2014 00:37:04 +0000 (16:37 -0800)
commit2a1d689c9ba42a6066540fb221b6ecbd6298b728
tree55c0cab9c0aa7d17fc23f03b9b7631e24458c125
parent40e2c71d57565a82970a5a2b75f7eb67bb3252f4
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 <[email protected]>
Signed-off-by: Jan Beulich <[email protected]>
Cc: Kyungsik Lee <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/decompress_unlz4.c
This page took 0.055955 seconds and 4 git commands to generate.