Messages in this thread | | | Date | Wed, 25 Jun 2014 21:49:57 +0800 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto:caam - Correct the dma mapping for sg table |
| |
On Mon, Jun 23, 2014 at 07:50:26PM +0530, Ruchika Gupta wrote: > 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>
Patch applied. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |