]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Apr 2021 07:45:13 +0000 (17:45 +1000)
commitc66fa150e8c7b21837b33a5509b04e787cda54ea
tree2492f2990f1bfac784411784f9786c90bea78751
parent74fabbb1f08c7e97bc14efb15565e1dca490fc70
crypto: sa2ul - Fix memory leak of rxd

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

Addresses-Coverity: ("Resource leak")
Fixes: 5a243941aa73 ("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>
drivers/crypto/sa2ul.c