crypto: caam/jr - fix descriptor DMA unmapping
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 6 Aug 2018 12:29:09 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 18:01:25 +0000 (20:01 +0200)
commitac617410962fcdd6b4675865a4469a8a54abb584
tree56151c0bd7eb1ad001e351d884311e356c5b7ad7
parent4a219e41a9dbf14a17d0056e7a1a148196117ba5
crypto: caam/jr - fix descriptor DMA unmapping

commit cc98963dbaaea93d17608641b8d6942a5327fc31 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/caam/jr.c