linux-stable/drivers/dma/ptdma
Christophe JAILLET 3c62fd3406 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: fa5d823b16 ("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>
2022-02-15 10:47:36 +05:30
..
Kconfig
Makefile dmaengine: ptdma: Add debugfs entries for PTDMA 2021-08-29 19:14:20 +05:30
ptdma-debugfs.c dmaengine: ptdma: Add debugfs entries for PTDMA 2021-08-29 19:14:20 +05:30
ptdma-dev.c dmaengine: ptdma: Fix the error handling path in pt_core_init() 2022-02-15 10:47:36 +05:30
ptdma-dmaengine.c
ptdma-pci.c
ptdma.h dmaengine: ptdma: remove PT_OFFSET to avoid redefnition 2021-08-29 19:14:21 +05:30