Searched hist:"3 c62fd34" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/dma/ptdma/ |
H A D | ptdma-dev.c | 3c62fd34 Sat Feb 05 00:58:44 CST 2022 Christophe JAILLET <christophe.jaillet@wanadoo.fr> dmaengine: ptdma: Fix the error handling path in pt_core_init()
In order to free resources correctly in the error handling path of pt_core_init(), 2 goto's have to be switched. Otherwise, some resources will leak and we will try to release things that have not been allocated yet.
Also move a dev_err() to a place where it is more meaningful.
Fixes: fa5d823b16a9 ("dmaengine: ptdma: Initial driver for the AMD PTDMA") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Sanjay R Mehta <sanju.mehta@amd.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/41a963a35173f89c874f5c44df5530dc09fea8da.1644044244.git.christophe.jaillet@wanadoo.fr Signed-off-by: Vinod Koul <vkoul@kernel.org>
|