]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: sa2ul - Fix memory leak of rxd
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Apr 2021 15:28:39 +0000 (16:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:49:46 +0000 (10:49 +0200)
commitdfd6443bf49ac17adf882ca46c40c506a0284bd6
tree36e18258c00f9dedfedf2c10f580732ffefbaa80
parentc633e025bd04f54d7b33331cfcdb71354b08ce59
crypto: sa2ul - Fix memory leak of rxd

[ Upstream commit 854b7737199848a91f6adfa0a03cf6f0c46c86e8 ]

There are two error return paths that are not freeing rxd and causing
memory leaks.  Fix these.

Addresses-Coverity: ("Resource leak")
Fixes: 00c9211f60db ("crypto: sa2ul - Fix DMA mapping API usage")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/sa2ul.c