summaryrefslogtreecommitdiffstats
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorCristian Stoica <cristian.stoica@freescale.com>2015-01-27 10:54:27 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2015-02-04 10:59:41 +0100
commitc47689931fff5f8882a923bbd8d8590f038fa097 (patch)
tree8efcceeb5d237047a443cf8f69ac64956cc6ade9 /crypto/testmgr.c
parentcrypto: testmgr - mark rfc4106(gcm(aes)) as fips_allowed (diff)
downloadlinux-c47689931fff5f8882a923bbd8d8590f038fa097.tar.xz
linux-c47689931fff5f8882a923bbd8d8590f038fa097.zip
crypto: tcrypt - fix buflen reminder calculation
- This fixes the intent of the code to limit the last scatterlist to either a full PAGE or a fraction of it, depending on the number of pages needed by buflen and the available space advertised by XBUFLEN. The original code always sets the last scatterlist to a fraction of a PAGE because the first 'if' is never executed. - Rearrange the second part of the code to remove the conditional from the loop Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions