summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorCristian Stoica <cristian.stoica@freescale.com>2015-01-27 11:54:27 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-02-04 20:59:41 +1100
commit9ac171c026475175c25ea3b0c0ac7d67100b2d8d (patch)
tree3d3e3a78de3a9b4f6f495c4e7ec3a4f319f70e69 /crypto/testmgr.c
parent9367e7cdb1a269517d4ab4c2570617f8fbce498f (diff)
downloadlinux-crypto-9ac171c026475175c25ea3b0c0ac7d67100b2d8d.tar.gz
linux-crypto-9ac171c026475175c25ea3b0c0ac7d67100b2d8d.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