crypto: atmel-sha - fix missing "return" instructions
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 9 Feb 2017 16:51:20 +0000 (17:51 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Feb 2017 05:23:32 +0000 (13:23 +0800)
commitdd3f9f40b58168f91f27ab686c7bae1f35edd3d4
treeb3ce83c4c71f958b45cc2a6fbf6febda49771d1e
parentf7cc02b3c3a33a10dd5bb9e5dfd22e47e09503a2
crypto: atmel-sha - fix missing "return" instructions

This patch fixes a previous patch: "crypto: atmel-sha - update request
queue management to make it more generic".

Indeed the patch above should have replaced the "return -EINVAL;" lines by
"return atmel_sha_complete(dd, -EINVAL);" but instead replaced them by a
simple call of "atmel_sha_complete(dd, -EINVAL);".
Hence all "return" instructions were missing.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c