summaryrefslogtreecommitdiff
path: root/crypto/tgr192.c
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2020-09-21 00:20:59 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-09-25 17:48:54 +1000
commitbb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc (patch)
tree24da52e2d1f2234acbbc9e39479878febea72b0b /crypto/tgr192.c
parent696e2e97ed2c7fe56fef6148ae2b35da352fa0a3 (diff)
downloadlinux-crypto-bb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc.tar.gz
linux-crypto-bb9a0217e9cbaf598bd2c8a5493390c6dba0ffcc.zip
crypto: testmgr - Fix potential memory leak in test_akcipher_one()
When the 'key' allocation fails, the 'req' will not be released, which will cause memory leakage on this path. This patch adds a 'free_req' tag used to solve this problem, and two new err values are added to reflect the real reason of the error. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tgr192.c')
0 files changed, 0 insertions, 0 deletions