]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
crypto: tcrypt - free xoutbuf instead of axbuf
authorColin Ian King <colin.king@canonical.com>
Tue, 2 Jan 2018 15:43:04 +0000 (15:43 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Jan 2018 12:03:07 +0000 (23:03 +1100)
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>
crypto/tcrypt.c

index f61d2f40dd9076342f46b50afc5e51f2c1562578..14213a096fd29df0b12e2c23142289890c68d16d 100644 (file)
@@ -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;
                }