crypto: lz4 - fixed decompress function to return error code
authorMyungho Jung <mhjungk@gmail.com>
Mon, 10 Apr 2017 00:34:22 +0000 (17:34 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Apr 2017 11:17:27 +0000 (19:17 +0800)
commitcd15f1020fd627d795e60a142d1f00f7fc1fe7f3
tree72f5c44eb6bcce1e4dd20ea16849951ec88190ea
parent07a77929ba672d93642a56dc2255dd21e6e2290b
crypto: lz4 - fixed decompress function to return error code

Decompress function in LZ4 library is supposed to return an error code or
negative result. But, it returns -1 when any error is detected. Return
error code when the library returns negative value.

Signed-off-by: Myungho Jung <mhjungk@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/lz4.c
crypto/lz4hc.c