Re: [PATCH] dmaengine: ti: k3-udma: Fix a resource leak in an error handling path

2021-01-26 Thread Péter Ujfalusi
Hi, On 1/24/21 9:09 AM, Christophe JAILLET wrote: 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. Interesting that I only had error for the bcdma

Re: [PATCH] dmaengine: ti: k3-udma: Fix a resource leak in an error handling path

2021-01-26 Thread Vinod Koul
On 24-01-21, 08:09, Christophe JAILLET wrote: > 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. Applied, thanks -- ~Vinod

[PATCH] dmaengine: ti: k3-udma: Fix a resource leak in an error handling path

2021-01-23 Thread Christophe JAILLET
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