crypto: tcrypt - fix S/G table for test_aead_speed()
authorRobert Baronescu <robert.baronescu@nxp.com>
Tue, 10 Oct 2017 10:21:59 +0000 (13:21 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Nov 2017 05:43:40 +0000 (16:43 +1100)
commit5c6ac1d4f8fbdbed65dbeb8cf149d736409d16a1
tree14c3241778601982a09695c7473bcabba10aefbf
parentecaaab5649781c5a0effdaf298a925063020500e
crypto: tcrypt - fix S/G table for test_aead_speed()

In case buffer length is a multiple of PAGE_SIZE,
the S/G table is incorrectly generated.
Fix this by handling buflen = k * PAGE_SIZE separately.

Signed-off-by: Robert Baronescu <robert.baronescu@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c