diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-06-28 20:33:52 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-06-29 18:12:42 +0800 |
commit | 72259deb3a9f2c07d18d71d7c9356754e7d88369 (patch) | |
tree | cb3c073874339ae6ad080fa3b0ad96dc0c2c6601 /arch/tile | |
parent | f8de55b6252b30f9bc1dcb62964f7b49e00983fa (diff) | |
download | op-kernel-dev-72259deb3a9f2c07d18d71d7c9356754e7d88369.zip op-kernel-dev-72259deb3a9f2c07d18d71d7c9356754e7d88369.tar.gz |
crypto: tcrypt - Fix memory leaks/crashes in multibuffer hash speed test
This patch resolves a number of issues with the mb speed test
function:
* The tfm is never freed.
* Memory is allocated even when we're not using mb.
* When an error occurs we don't wait for completion for other requests.
* When an error occurs during allocation we may leak memory.
* The test function ignores plen but still runs for plen != blen.
* The backlog flag is incorrectly used (may crash).
This patch tries to resolve all these issues as well as making
the code consistent with the existing hash speed testing function.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'arch/tile')
0 files changed, 0 insertions, 0 deletions