In the Linux kernel, the following vulnerability has been resolved:
dmaengine: ptdma: Fix the error handling path in ptcoreinit()
In order to free resources correctly in the error handling path of ptcoreinit(), 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.