crypto: chelsio - check set_msg_len overflow in generate_b0
authorYueHaibing <yuehaibing@huawei.com>
Fri, 28 Dec 2018 06:41:00 +0000 (14:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Jan 2019 06:16:56 +0000 (14:16 +0800)
commit66af86d93ce32ff5b262ace9a6696873cc1bdb3e
treeb7221d16b13ca3d996d71149fbd90dd35b062791
parentbe8a54d367bfef7a5b354975f878441383ce9993
crypto: chelsio - check set_msg_len overflow in generate_b0

set_msg_len may fails with -EOVERFLOW, It should be propagate
to upstream.

Fixes: 2debd3325e55 ("crypto: chcr - Add AEAD algos.")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c