summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorRobert Elliott <elliott@hpe.com>2022-09-30 16:40:14 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2022-10-21 19:15:35 +0800
commit65c92cbb3f2365627a10cf97560d51e88fb4e588 (patch)
tree8f08999fb2154b60279f3362bcb3235e9e48d231 /samples
parent46beeade05c6a7673873ba0a7b6396cd3a3b3473 (diff)
downloadlinux-stable-65c92cbb3f2365627a10cf97560d51e88fb4e588.tar.gz
linux-stable-65c92cbb3f2365627a10cf97560d51e88fb4e588.tar.bz2
linux-stable-65c92cbb3f2365627a10cf97560d51e88fb4e588.zip
crypto: tcrypt - fix return value for multiple subtests
When a test mode invokes multiple tests (e.g., mode 0 invokes modes 1 through 199, and mode 3 tests three block cipher modes with des), don't keep accumulating the return values with ret += tcrypt_test(), which results in a bogus value if more than one report a nonzero value (e.g., two reporting -2 (-ENOENT) end up reporting -4 (-EINTR)). Instead, keep track of the minimum return value reported by any subtest. Fixes: 4e033a6bc70f ("crypto: tcrypt - Do not exit on success in fips mode") Signed-off-by: Robert Elliott <elliott@hpe.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions