projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22240df
)
crypto: caam/jr - fix descriptor DMA unmapping
author
Horia Geantă
<
[email protected]
>
Mon, 6 Aug 2018 12:29:09 +0000
(15:29 +0300)
committer
Herbert Xu
<
[email protected]
>
Sat, 25 Aug 2018 11:50:40 +0000
(19:50 +0800)
Descriptor address needs to be swapped to CPU endianness before being
DMA unmapped.
Cc: <
[email protected]
> # 4.8+
Fixes: 261ea058f016 ("crypto: caam - handle core endianness != caam endianness")
Reported-by: Laurentiu Tudor <
[email protected]
>
Signed-off-by: Horia Geantă <
[email protected]
>
Signed-off-by: Herbert Xu <
[email protected]
>
drivers/crypto/caam/jr.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam/jr.c
b/drivers/crypto/caam/jr.c
index f4f258075b895a8c55fbd836d35b1b6b399beed8..acdd72016ffe154fab70f8de0ff43f6251b50e28 100644
(file)
--- a/
drivers/crypto/caam/jr.c
+++ b/
drivers/crypto/caam/jr.c
@@
-190,7
+190,8
@@
static void caam_jr_dequeue(unsigned long devarg)
BUG_ON(CIRC_CNT(head, tail + i, JOBR_DEPTH) <= 0);
/* Unmap just-run descriptor so we can post-process */
- dma_unmap_single(dev, jrp->outring[hw_idx].desc,
+ dma_unmap_single(dev,
+ caam_dma_to_cpu(jrp->outring[hw_idx].desc),
jrp->entinfo[sw_idx].desc_size,
DMA_TO_DEVICE);