crypto: allwinner: sun8i-ss: use dma_addr instead u32
PATCH 1/1 crypto: allwinner: sun8i-ss: use dma_addr instead u32
The DMA address need to be stored in a dma_addr_t
Fixes 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Corentin Labbe <[email protected]>
--- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c +1 -1
@@ -124,7 +124,7 @@ static int sun8i_ss_setup_ivs(struct skcipher_request *areq)unsigned int ivsize =crypto_skcipher_ivsize (tfm);struct sun8i_ss_flow *sf = &ss->flows[rctx->flow];int i =0 ; -u32 a; +dma_addr_t a;int err; rctx->ivlen = ivsize;
Signature · 1 line
2.35.1
Herbert Xu
maintainerQuoted 8 lines · Corentin Labbe
The DMA address need to be stored in a
dma_addr_tFixes 359e893e8af4 ("crypto: sun8i-ss - rework handling of IV")Reported-by Dan Carpenter <[email protected]>Signed-off-by Corentin Labbe <[email protected]>--- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt