From: Colin Ian King Date: Tue, 2 Jan 2018 15:43:04 +0000 (+0000) Subject: crypto: tcrypt - free xoutbuf instead of axbuf X-Git-Tag: v4.16-rc1~124^2~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6ba4f3e68e9dd41e75777aba8ba138c49e6ea60;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index f61d2f40dd907..14213a096fd29 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; }