Skip to content
Commit 3944f139 authored by Dan Aloni's avatar Dan Aloni Committed by Herbert Xu
Browse files

crypto: fix a memory leak in rsa-kcs1pad's encryption mode



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: default avatarDan Aloni <dan@kernelim.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cdf640a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment