Commit d4731bef authored by Iuliana Prodan's avatar Iuliana Prodan Committed by Greg Kroah-Hartman

crypto: caam - fix caam_dump_sg that iterates through scatterlist

[ Upstream commit 8c65d354 ]

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

Fixes: 5ecf8ef9 ("crypto: caam - fix sg dump")
Signed-off-by: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fc075cc5
...@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type, ...@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
size_t len; size_t len;
void *buf; void *buf;
for (it = sg; it && tlen > 0 ; it = sg_next(sg)) { for (it = sg; it && tlen > 0 ; it = sg_next(it)) {
/* /*
* make sure the scatterlist's page * make sure the scatterlist's page
* has a valid virtual memory mapping * has a valid virtual memory mapping
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment