Mogens Lauridsen <mlauridsen...@gmail.com> wrote:
> Hi,
> 
> The direction used in dma_unmap_sg in aes calc in sahara.c is wrong.
> This result in the cache not being invalidated correct when aes
> calculation is done and result is dma'ed to memory.
> This is seen as sporadic wrong result from aes calc.
> 
> Thanks,
> Mogens
> 
> Signed-off-by: Mogens Lauridsen <mlauridsen...@gmail.com>
> 
> diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
> index 1d9ecd3..9538c52 100644ae
> --- a/drivers/crypto/sahara.c
> +++ b/drivers/crypto/sahara.c
> @@ -543,10 +543,10 @@ static int sahara_hw_descriptor_create(struct 
> sahara_dev *
> 
> unmap_out:
>        dma_unmap_sg(dev->device, dev->out_sg, dev->nb_out_sg,
> -               DMA_TO_DEVICE);
> +               DMA_FROM_DEVICE);

Your patch is space-damaged and does not apply.  Please send your
emails in a way that preserves white spaces.

Thanks,
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to