]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dec36f233420542a2b2e00f11263713af300484
tree541f75fab4121999abab73403ee79c1068b9c43e
parent8a329618de7178adf3e94f7f74e8953c6b5da5b8
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