+ lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch added to -mm tree
[email protected]
maintainerSubject: + lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 11 Nov 2013 13:50:50 -0800
The patch titled
Subject: lib/decompress_unlz4.c: always set an error return code on failures
has been added to the -mm tree. Its filename is
lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: "Jan Beulich" <[email protected]>
Subject: 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.
---
lib/decompress_unlz4.c | 1 + 1 file changed, 1 insertion(+)
lib/decompress_unlz4.c renamed from lib/decompress_unlz4.c~lib-decompress_unlz4c-always-set-an-error-return-code-on-failures +1 -0
@@ -141,6 +141,7 @@ STATIC inline int INIT unlz4(u8 *input, goto exit_2; } + ret =-1 ;if (flush &&flush (outp, dest_len) != dest_len) goto exit_2;if (output)
_
Patches currently in -mm which might be from [email protected] are
lib-decompress_unlz4c-always-set-an-error-return-code-on-failures.patch linux-next.patch