Skip to content

Commit 8c65d35

Browse files
iuliana-prodanherbertx
authored andcommitted
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: 5ecf8ef ("crypto: caam - fix sg dump") Signed-off-by: Iuliana Prodan <[email protected]> Reviewed-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 24586b5 commit 8c65d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/caam/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
2222
size_t len;
2323
void *buf;
2424

25-
for (it = sg; it && tlen > 0 ; it = sg_next(sg)) {
25+
for (it = sg; it && tlen > 0 ; it = sg_next(it)) {
2626
/*
2727
* make sure the scatterlist's page
2828
* has a valid virtual memory mapping

0 commit comments

Comments
 (0)