crypto: caam: fix caam_dump_sg that iterates through scatterlist
authorIuliana Prodan <iuliana.prodan@nxp.com>
Mon, 6 May 2019 13:13:49 +0000 (16:13 +0300)
committerIuliana Prodan <iuliana.prodan@nxp.com>
Tue, 7 May 2019 12:33:02 +0000 (15:33 +0300)
commit100297abad7eda540993e3b5780e7e45583290d1
tree06929f1932b70b04afc71b8e35186c473c43dcc5
parentd845971fdd5531a1f3c37bbc45560aedd3da0773
crypto: caam: fix caam_dump_sg that iterates through scatterlist

Fix caam_dump_sg by correctly determining the next scatterlist
entry in the list.

Fixes: 5ecf8ef9103c ("crypto: caam - fix sg dump")
Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
drivers/crypto/caam/error.c