From: Ruchika Gupta Date: Mon, 23 Jun 2014 14:20:26 +0000 (+0530) Subject: crypto: caam - Correct the dma mapping for sg table X-Git-Tag: omap-for-v3.17/fixes-against-rc2~194^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da2be33ad4c30a2b1d5fe3053b5b7f63e6e2baa;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed