mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
can: kvaser_pciefd: Disable interrupts in probe error path
commit11164bc394upstream. Disable interrupts in error path of probe function. Fixes:26ad340e58("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Cc: stable@vger.kernel.org Signed-off-by: Jimmy Assarsson <extja@kvaser.com> Link: https://lore.kernel.org/r/20230516134318.104279-7-extja@kvaser.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7a7ec807fe
commit
845f98af6a
@@ -1861,6 +1861,8 @@ static int kvaser_pciefd_probe(struct pci_dev *pdev,
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_free_irq:
|
err_free_irq:
|
||||||
|
/* Disable PCI interrupts */
|
||||||
|
iowrite32(0, pcie->reg_base + KVASER_PCIEFD_IEN_REG);
|
||||||
free_irq(pcie->pci->irq, pcie);
|
free_irq(pcie->pci->irq, pcie);
|
||||||
|
|
||||||
err_teardown_can_ctrls:
|
err_teardown_can_ctrls:
|
||||||
|
|||||||
Reference in New Issue
Block a user