crypto: caam - fix inconsistent assoc dma mapping direction
authorHoria Geanta <horia.geanta@freescale.com>
Fri, 10 May 2013 12:08:39 +0000 (15:08 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 May 2013 02:37:57 +0000 (10:37 +0800)
commit286233e604d79f0c7fa04abec2180d5d89a74749
tree2ec0ec723c9200a0cc26902ca6fb967b78f17e6f
parentf722406faae2d073cc1d01063d1123c35425939e
crypto: caam - fix inconsistent assoc dma mapping direction

req->assoc is dma mapped BIDIRECTIONAL and unmapped TO_DEVICE.
Since it is read-only for the device, use TO_DEVICE both for mapping
and unmapping.

Cc: <stable@vger.kernel.org> # 3.9, 3.8
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c