crypto: caam/jr - fix descriptor DMA unmapping
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 6 Aug 2018 12:29:09 +0000 (15:29 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 25 Aug 2018 11:50:40 +0000 (19:50 +0800)
commitcc98963dbaaea93d17608641b8d6942a5327fc31
treea68f574574ce381eee0f9cb0ea1b27cf18ecfddd
parent22240df7ac6d76a271197571a7be45addef2ba15
crypto: caam/jr - fix descriptor DMA unmapping

Descriptor address needs to be swapped to CPU endianness before being
DMA unmapped.

Cc: <stable@vger.kernel.org> # 4.8+
Fixes: 261ea058f016 ("crypto: caam - handle core endianness != caam endianness")
Reported-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/jr.c