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.
[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e41445287afa3cf6d572778e5aab31d25e60a8d",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "51509638585180548166603609289825492617",
                "309445653500953996932772764943130909075",
                "158290357788415602873645020310587604720",
                "187040850187775915244669344976336327188",
                "153812117212954213703859614881711943384",
                "229136921096843267907919076441898646485",
                "304926174543940330919147636287245884301",
                "136040313351354979224152909369472531356",
                "198006018731867422515829126192632589158",
                "100701307784962534474863988040699036867",
                "185345387465568203699594641845107686194",
                "158687133344166896787441170543328257224",
                "198615219490613304472441403287110628447",
                "217143122498445435682526775696543927215",
                "154532333711431967131453258888182079100",
                "89998759902545505546435383058807040040",
                "15366550488166991558671607704482843353",
                "336856984947282027509695902974009606896",
                "244302984449005778017883010755017830716",
                "306990442190053692271046006127658186831",
                "139355432662355585141456097347386743619"
            ]
        },
        "target": {
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-14867198",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7de1e4820c5a42441ff7276174c8c0e63575c1b",
        "deprecated": false,
        "digest": {
            "function_hash": "26539048428166399087402480368649033009",
            "length": 2268.0
        },
        "target": {
            "function": "pt_core_init",
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-43b36635",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d7de1e4820c5a42441ff7276174c8c0e63575c1b",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "51509638585180548166603609289825492617",
                "309445653500953996932772764943130909075",
                "158290357788415602873645020310587604720",
                "187040850187775915244669344976336327188",
                "153812117212954213703859614881711943384",
                "229136921096843267907919076441898646485",
                "304926174543940330919147636287245884301",
                "136040313351354979224152909369472531356",
                "198006018731867422515829126192632589158",
                "100701307784962534474863988040699036867",
                "185345387465568203699594641845107686194",
                "158687133344166896787441170543328257224",
                "198615219490613304472441403287110628447",
                "217143122498445435682526775696543927215",
                "154532333711431967131453258888182079100",
                "89998759902545505546435383058807040040",
                "15366550488166991558671607704482843353",
                "336856984947282027509695902974009606896",
                "244302984449005778017883010755017830716",
                "306990442190053692271046006127658186831",
                "139355432662355585141456097347386743619"
            ]
        },
        "target": {
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-5bfee37b",
        "signature_version": "v1",
        "signature_type": "Line"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e41445287afa3cf6d572778e5aab31d25e60a8d",
        "deprecated": false,
        "digest": {
            "function_hash": "26539048428166399087402480368649033009",
            "length": 2268.0
        },
        "target": {
            "function": "pt_core_init",
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-7818d10c",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c62fd3406e0b2277c76a6984d3979c7f3f1d129",
        "deprecated": false,
        "digest": {
            "function_hash": "26539048428166399087402480368649033009",
            "length": 2268.0
        },
        "target": {
            "function": "pt_core_init",
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-7fe99040",
        "signature_version": "v1",
        "signature_type": "Function"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c62fd3406e0b2277c76a6984d3979c7f3f1d129",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "51509638585180548166603609289825492617",
                "309445653500953996932772764943130909075",
                "158290357788415602873645020310587604720",
                "187040850187775915244669344976336327188",
                "153812117212954213703859614881711943384",
                "229136921096843267907919076441898646485",
                "304926174543940330919147636287245884301",
                "136040313351354979224152909369472531356",
                "198006018731867422515829126192632589158",
                "100701307784962534474863988040699036867",
                "185345387465568203699594641845107686194",
                "158687133344166896787441170543328257224",
                "198615219490613304472441403287110628447",
                "217143122498445435682526775696543927215",
                "154532333711431967131453258888182079100",
                "89998759902545505546435383058807040040",
                "15366550488166991558671607704482843353",
                "336856984947282027509695902974009606896",
                "244302984449005778017883010755017830716",
                "306990442190053692271046006127658186831",
                "139355432662355585141456097347386743619"
            ]
        },
        "target": {
            "file": "drivers/dma/ptdma/ptdma-dev.c"
        },
        "id": "CVE-2022-48774-a9626a8f",
        "signature_version": "v1",
        "signature_type": "Line"
    }
]