]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: scatterwalk - Use nth_page instead of doing it by hand
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 Mar 2025 03:27:20 +0000 (11:27 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2025 09:33:39 +0000 (17:33 +0800)
commite9ed7aff2554176cac0c49907e14d55679d67f8a
treef7551beb72a5b179b37886ebb744ba81b199eebe
parent795e5bdb0ada2c77ea28611d88f1d5d7ca9b2f4d
crypto: scatterwalk - Use nth_page instead of doing it by hand

Curiously, the Crypto API scatterwalk incremented pages by hand
rather than using nth_page.  Possibly because scatterwalk predates
nth_page (the following commit is from the history tree):

commit 3957f2b34960d85b63e814262a8be7d5ad91444d
Author: James Morris <jmorris@intercode.com.au>
Date:   Sun Feb 2 07:35:32 2003 -0800

    [CRYPTO]: in/out scatterlist support for ciphers.

Fix this by using nth_page.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/scatterwalk.h