All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist
@ 2019-05-07 13:37 Iuliana Prodan
  2019-05-07 14:30 ` Horia Geanta
  2019-05-09  5:25 ` Herbert Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Iuliana Prodan @ 2019-05-07 13:37 UTC (permalink / raw)
  To: Herbert Xu, Horia Geanta, Aymen Sghaier
  Cc: David S. Miller, linux-crypto, linux-kernel, linux-imx

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/error.c b/drivers/crypto/caam/error.c
index 21a70fd..7c9fb63 100644
--- a/drivers/crypto/caam/error.c
+++ b/drivers/crypto/caam/error.c
@@ -22,7 +22,7 @@ void caam_dump_sg(const char *level, const char *prefix_str, int prefix_type,
 	size_t len;
 	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
 		 * has a valid virtual memory mapping
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist
  2019-05-07 13:37 [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist Iuliana Prodan
@ 2019-05-07 14:30 ` Horia Geanta
  2019-05-09  5:25 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Horia Geanta @ 2019-05-07 14:30 UTC (permalink / raw)
  To: Iuliana Prodan, Herbert Xu, Aymen Sghaier
  Cc: David S. Miller, linux-crypto, linux-kernel, dl-linux-imx

On 5/7/2019 4:37 PM, Iuliana Prodan wrote:
> 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>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>

Thanks,
Horia

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist
  2019-05-07 13:37 [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist Iuliana Prodan
  2019-05-07 14:30 ` Horia Geanta
@ 2019-05-09  5:25 ` Herbert Xu
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2019-05-09  5:25 UTC (permalink / raw)
  To: Iuliana Prodan
  Cc: Horia Geanta, Aymen Sghaier, David S. Miller, linux-crypto,
	linux-kernel, linux-imx

On Tue, May 07, 2019 at 04:37:03PM +0300, Iuliana Prodan wrote:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-09  5:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-07 13:37 [PATCH] crypto: caam: fix caam_dump_sg that iterates through scatterlist Iuliana Prodan
2019-05-07 14:30 ` Horia Geanta
2019-05-09  5:25 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.