mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: tcrypt - free xoutbuf instead of axbuf
@ 2018-01-02 15:43 Colin King
  2018-01-12 12:23 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2018-01-02 15:43 UTC (permalink / raw)
  To: Antoine Tenart, Herbert Xu, David S . Miller, linux-crypto
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 crypto/tcrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,
 	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;
 		}
 
-- 
2.14.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: tcrypt - free xoutbuf instead of axbuf
  2018-01-02 15:43 [PATCH] crypto: tcrypt - free xoutbuf instead of axbuf Colin King
@ 2018-01-12 12:23 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2018-01-12 12:23 UTC (permalink / raw)
  To: Colin King
  Cc: Antoine Tenart, David S . Miller, linux-crypto, kernel-janitors,
	linux-kernel

On Tue, Jan 02, 2018 at 03:43:04PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-12 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-02 15:43 [PATCH] crypto: tcrypt - free xoutbuf instead of axbuf Colin King
2018-01-12 12:23 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®