diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-01-24 10:09:23 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-01-26 20:31:32 +0300 |
commit | fed1b6a00a191cad4dd843519b590e3d6ad9f843 (patch) | |
tree | 5ad2f3cc864294574874779b27fe35339960e91f /lib/find_bit_benchmark.c | |
parent | e594443196d6e0ef3d3b30320c49b3a4d4f9a547 (diff) | |
download | linux-fed1b6a00a191cad4dd843519b590e3d6ad9f843.tar.xz |
dmaengine: ti: k3-udma: Fix a resource leak in an error handling path
In 'dma_pool_create()', we return -ENOMEM, but don't release the resources
already allocated, as in all the other error handling paths.
Go to 'err_res_free' instead of returning directly.
Fixes: 017794739702 ("dmaengine: ti: k3-udma: Initial support for K3 BCDMA")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20210124070923.724479-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/find_bit_benchmark.c')
0 files changed, 0 insertions, 0 deletions