[PATCH] crypto: crypto4xx - Fix size used in dma_free_coherent()

2016-10-07 Thread Christophe JAILLET
The size used in 'dma_free_coherent()' looks un-initialized here. ctx->sa_len is set a few lines below and is apparently not set by the caller. So use 'size' as in the corresponding 'dma_alloc_coherent()' a few lines above. This has been spotted with coccinelle, using the following script:

[PATCH] crypto: crypto4xx - Fix size used in dma_free_coherent()

2016-10-07 Thread Christophe JAILLET
The size used in 'dma_free_coherent()' looks un-initialized here. ctx->sa_len is set a few lines below and is apparently not set by the caller. So use 'size' as in the corresponding 'dma_alloc_coherent()' a few lines above. This has been spotted with coccinelle, using the following script: