diff options
author | Ruchika Gupta <ruchika.gupta@freescale.com> | 2014-06-23 14:20:26 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:35:53 (GMT) |
commit | 401354d54ace84f76675f93f7539eb3c3f8708ff (patch) | |
tree | 9882b67b6ac7b1ff3f8c0ca2939fc8bec0d89fc9 /crypto/aes_generic.c | |
parent | 34d9bfa09275d2d165112633ab2cadedae1eddce (diff) | |
download | linux-fsl-qoriq-401354d54ace84f76675f93f7539eb3c3f8708ff.tar.xz |
crypto: caam - Correct the dma mapping for sg table
At few places in caamhash and caamalg, after allocating a dmable
buffer for sg table , the buffer was being modified. As per
definition of DMA_FROM_DEVICE ,afer allocation the memory should
be treated as read-only by the driver. This patch shifts the
allocation of dmable buffer for sg table after it is populated
by the driver, making it read-only as per the DMA API's requirement.
Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 1da2be33ad4c30a2b1d5fe3053b5b7f63e6e2baa)
Change-Id: I485040b955e27772c20623f037e8a5167404c18d
Reviewed-on: http://git.am.freescale.net:8181/17736
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Tested-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'crypto/aes_generic.c')
0 files changed, 0 insertions, 0 deletions