From: KOVACS Krisztian Date: Fri, 22 Aug 2014 08:44:35 +0000 (+0200) Subject: crypto: lz4,lz4hc - fix decompression X-Git-Tag: fixes-for-v3.18-merge-window~17^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d801ab204b5a500b66ca285ac7b440cc79933a27;p=pandora-kernel.git crypto: lz4,lz4hc - fix decompression The lz4 library has two functions for decompression, with slightly different signatures and behaviour. The lz4_decompress_crypto() function seemed to be using the one that assumes that the decompressed length is known in advance. This patch switches to the other decompression function and makes sure that the length of the decompressed output is properly returned to the caller. The same issue was present in the lz4hc algorithm. Coincidentally, this change also makes very basic lz4 and lz4hc compression tests in testmgr pass. Signed-off-by: KOVACS Krisztian Signed-off-by: Herbert Xu --- Reading git-diff-tree failed