diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2020-09-20 18:20:59 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-09-25 09:48:54 +0200 |
commit | 2b40386774831c9617325ca8940fb3c270cbb086 (patch) | |
tree | fd5ffe947839c62b0c9fb67f8970ba157a25a389 /fs/bad_inode.c | |
parent | crypto: testmgr - support test with different ciphertext per encryption (diff) | |
download | linux-2b40386774831c9617325ca8940fb3c270cbb086.tar.xz linux-2b40386774831c9617325ca8940fb3c270cbb086.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 'fs/bad_inode.c')
0 files changed, 0 insertions, 0 deletions