mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
crypto: sun8i-ss - use dma_addr instead u32
[ Upstream commit839b8ae2fc] The DMA address need to be stored in a dma_addr_t Fixes:359e893e8a("crypto: sun8i-ss - rework handling of IV") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bf4d7c66a1
commit
ee3cffc38e
@@ -105,7 +105,7 @@ static int sun8i_ss_setup_ivs(struct skcipher_request *areq)
|
|||||||
unsigned int ivsize = crypto_skcipher_ivsize(tfm);
|
unsigned int ivsize = crypto_skcipher_ivsize(tfm);
|
||||||
struct sun8i_ss_flow *sf = &ss->flows[rctx->flow];
|
struct sun8i_ss_flow *sf = &ss->flows[rctx->flow];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
u32 a;
|
dma_addr_t a;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
rctx->ivlen = ivsize;
|
rctx->ivlen = ivsize;
|
||||||
|
|||||||
Reference in New Issue
Block a user