* [PATCH] crypto: allwinner: sun8i-ss: use dma_addr instead u32
@ 2022-09-27 8:55 Corentin Labbe
2022-10-21 11:33 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Corentin Labbe @ 2022-09-27 8:55 UTC (permalink / raw)
To: dan.carpenter, davem, herbert, jernej.skrabec, samuel, wens
Cc: linux-arm-kernel, linux-crypto, linux-kernel, linux-sunxi,
linux-sunxi, Corentin Labbe
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 <dan.carpenter@oracle.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
index 910d6751644c..902f6be057ec 100644
--- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
+++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
@@ -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;
--
2.35.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] crypto: allwinner: sun8i-ss: use dma_addr instead u32
2022-09-27 8:55 [PATCH] crypto: allwinner: sun8i-ss: use dma_addr instead u32 Corentin Labbe
@ 2022-10-21 11:33 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2022-10-21 11:33 UTC (permalink / raw)
To: Corentin Labbe
Cc: dan.carpenter, davem, jernej.skrabec, samuel, wens,
linux-arm-kernel, linux-crypto, linux-kernel, linux-sunxi,
linux-sunxi
On Tue, Sep 27, 2022 at 08:55:55AM +0000, Corentin Labbe wrote:
> 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 <dan.carpenter@oracle.com>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
> ---
> drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-21 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 8:55 [PATCH] crypto: allwinner: sun8i-ss: use dma_addr instead u32 Corentin Labbe
2022-10-21 11:33 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®