summaryrefslogtreecommitdiff
path: root/rust/kernel/interop/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2026-03-24 17:35:41 +0800
committerManivannan Sadhasivam <mani@kernel.org>2026-04-04 22:20:50 +0530
commit5573c44cb3fd01a9f62d569ae9ac870ef5f0e0ba (patch)
treed778cd343b53f9081d1c2a6113cf7eb3c642d3ac /rust/kernel/interop/git@git.tavy.me:linux-stable.git
parent1a152e21940a18caf7c9d0d753a46d2ffa3f5010 (diff)
PCI: mediatek-gen3: Prevent leaking IRQ domains when IRQ not found
In mtk_pcie_setup_irq(), the IRQ domains are allocated before the controller's IRQ is fetched. If the latter fails, the function directly returns an error, without cleaning up the allocated domains. Hence, reverse the order so that the IRQ domains are allocated after the controller's IRQ is found. This was flagged by Sashiko during a review of "[PATCH v6 0/7] PCI: mediatek-gen3: add power control support". Fixes: 814cceebba9b ("PCI: mediatek-gen3: Add INTx support") Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://sashiko.dev/#/patchset/20260324052002.4072430-1-wenst%40chromium.org Link: https://patch.msgid.link/20260324093542.18523-1-wenst@chromium.org
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions