diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-02 10:43:04 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-01-12 07:03:07 -0500 |
commit | c6ba4f3e68e9dd41e75777aba8ba138c49e6ea60 (patch) | |
tree | c1ed6db0f84981e867ba4f097de95cff5fd4cc9b /crypto/tcrypt.c | |
parent | 38dbe2d190b09389b0344d6ccb08adf02d930222 (diff) |
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: 427988d981c4 ("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/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f61d2f40dd90..14213a096fd2 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, | |||
298 | for (i = 0; i < num_mb; ++i) | 298 | for (i = 0; i < num_mb; ++i) |
299 | if (testmgr_alloc_buf(data[i].xoutbuf)) { | 299 | if (testmgr_alloc_buf(data[i].xoutbuf)) { |
300 | while (i--) | 300 | while (i--) |
301 | testmgr_free_buf(data[i].axbuf); | 301 | testmgr_free_buf(data[i].xoutbuf); |
302 | goto out_free_axbuf; | 302 | goto out_free_axbuf; |
303 | } | 303 | } |
304 | 304 | ||