mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
crypto: aspeed - Fix dma_unmap_sg() direction
commit 838d2d51513e6d2504a678e906823cfd2ecaaa22 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
69a18ff6c6
commit
11bb6f3cc2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user