Commit c6ba4f3e authored by Colin Ian King's avatar Colin Ian King Committed by Herbert Xu

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: 427988d9 ("crypto: tcrypt - add multibuf aead speed test")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 38dbe2d1
...@@ -298,7 +298,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs, ...@@ -298,7 +298,7 @@ static void test_mb_aead_speed(const char *algo, int enc, int secs,
for (i = 0; i < num_mb; ++i) for (i = 0; i < num_mb; ++i)
if (testmgr_alloc_buf(data[i].xoutbuf)) { if (testmgr_alloc_buf(data[i].xoutbuf)) {
while (i--) while (i--)
testmgr_free_buf(data[i].axbuf); testmgr_free_buf(data[i].xoutbuf);
goto out_free_axbuf; goto out_free_axbuf;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment