Thread (2 messages) 2 messages, 2 authors, 2015-07-30

Re: [PATCH] crypto: nx - don't err if compressed output > input

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2015-07-30 13:52:18
Also in: lkml

On Wed, Jul 29, 2015 at 07:42:09PM -0400, Dan Streetman wrote:
Return success instead of error if compression succeeds but the output is
larger than the input.

It's unlikely that the caller will use the compressed data since it's
larger than the original uncompressed data, but there was no error and
returning an error code is incorrect.  Further, for testing small input
buffers, the output is likely to be larger than the input and success
needs to be returned to verify the test.

Signed-off-by: Dan Streetman <redacted>
Applied.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help