diff options
author | Dan Aloni <dan@kernelim.com> | 2018-09-17 20:24:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-20 20:47:44 +0300 |
commit | 98ca4f397febb86b9dd81232df5db95ec5378ad4 (patch) | |
tree | 2b64f199ac97ca47a371b7986cc2ab14745f2abc /crypto/af_alg.c | |
parent | 975b3c8dd182dfae77ea3ceaa8ad7c51a396b0e7 (diff) | |
download | linux-98ca4f397febb86b9dd81232df5db95ec5378ad4.tar.xz |
crypto: fix a memory leak in rsa-kcs1pad's encryption mode
[ Upstream commit 3944f139d5592790b70bc64f197162e643a8512b ]
The encryption mode of pkcs1pad never uses out_sg and out_buf, so
there's no need to allocate the buffer, which presently is not even
being freed.
CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: linux-crypto@vger.kernel.org
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Dan Aloni <dan@kernelim.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto/af_alg.c')
0 files changed, 0 insertions, 0 deletions