crypto: gcm - Fix error return code in crypto_gcm_create_common()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:10:06 +0000 (15:10 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 25 Oct 2016 03:08:19 +0000 (11:08 +0800)
commit9b40f79c08e81234d759f188b233980d7e81df6c
tree541f75fab4121999abab73403ee79c1068b9c43e
parentff4f44de44dbd98feecf8fa76e14353a3993b335
crypto: gcm - Fix error return code in crypto_gcm_create_common()

Fix to return error code -EINVAL from the invalid alg ivsize error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/gcm.c