mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
crypto: aspeed - Fix dma_unmap_sg() direction
It seems like everywhere in this file, when the request is not
bidirectionala, req->src is mapped with DMA_TO_DEVICE and req->dst is
mapped with DMA_FROM_DEVICE.
Fixes: 62f58b1637 ("crypto: aspeed - add HACE crypto driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
bee8a520eb
commit
838d2d5151
1 changed files with 1 additions and 1 deletions
|
|
@ -346,7 +346,7 @@ free_req:
|
|||
|
||||
} else {
|
||||
dma_unmap_sg(hace_dev->dev, req->dst, rctx->dst_nents,
|
||||
DMA_TO_DEVICE);
|
||||
DMA_FROM_DEVICE);
|
||||
dma_unmap_sg(hace_dev->dev, req->src, rctx->src_nents,
|
||||
DMA_TO_DEVICE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue