summaryrefslogtreecommitdiff
path: root/arch/x86/crypto/des3_ede_glue.c
diff options
context:
space:
mode:
authorRuchika Gupta <ruchika.gupta@freescale.com>2014-06-23 18:20:26 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2014-06-25 17:38:41 +0400
commit1da2be33ad4c30a2b1d5fe3053b5b7f63e6e2baa (patch)
treeae35138a3ce41c356e893589cce3720a6ee0bc5c /arch/x86/crypto/des3_ede_glue.c
parentef94b1d834aace7101de77c3a7c2631b9ae9c5f6 (diff)
downloadlinux-1da2be33ad4c30a2b1d5fe3053b5b7f63e6e2baa.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>
Diffstat (limited to 'arch/x86/crypto/des3_ede_glue.c')
0 files changed, 0 insertions, 0 deletions