summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-02 15:43:04 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 23:03:07 +1100
commit5dfe655511fbf64c805dd6a0bde3b66d4f5d4f58 (patch)
treea7a45ba185a679f8514e57f378125bf04679fb6f /crypto
parentf3193325d890c69341e38e40f571d8f6eb9aa329 (diff)
downloadlinux-crypto-5dfe655511fbf64c805dd6a0bde3b66d4f5d4f58.tar.gz
linux-crypto-5dfe655511fbf64c805dd6a0bde3b66d4f5d4f58.zip
crypto: tcrypt - free xoutbuf instead of axbuf
There seems to be a cut-n-paste bug with the name of the buffer being free'd, xoutbuf should be used instead of axbuf. Detected by CoverityScan, CID#1463420 ("Copy-paste error") Fixes: aa6bade9aa65 ("crypto: tcrypt - add multibuf aead speed test") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/tcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f61d2f40..14213a09 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -298,7 +298,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs,
for (i = 0; i < num_mb; ++i)
if (testmgr_alloc_buf(data[i].xoutbuf)) {
while (i--)
- testmgr_free_buf(data[i].axbuf);
+ testmgr_free_buf(data[i].xoutbuf);
goto out_free_axbuf;
}