]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita82e9e5a1c9df1187b77021b4abe79e248b13aa1
tree14c3241778601982a09695c7473bcabba10aefbf
parent917a5865c734ed2efbd2cb06e28b250dced576cf
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