Thread (2 messages) 2 messages, 2 authors, 2017-01-12

[PATCH] crypto: mediatek: don't return garbage err on successful return

From: herbert@gondor.apana.org.au (Herbert Xu)
Date: 2017-01-12 16:40:28
Also in: linux-crypto, linux-mediatek, lkml

On Tue, Jan 03, 2017 at 01:21:22PM +0000, Colin King wrote:
From: Colin Ian King <redacted>

In the case where keylen <= bs mtk_sha_setkey returns an uninitialized
return value in err.  Fix this by returning 0 instead of err.

Issue detected by static analysis with cppcheck.

Signed-off-by: Colin Ian King <redacted>
Patch applied.  Thanks.
-- 
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