Skip to content

Commit 11164bc

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_pciefd: Disable interrupts in probe error path
Disable interrupts in error path of probe function. Fixes: 26ad340 ("can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices") Cc: [email protected] Signed-off-by: Jimmy Assarsson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 262d7a5 commit 11164bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/can/kvaser_pciefd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,6 +1861,8 @@ static int kvaser_pciefd_probe(struct pci_dev *pdev,
18611861
return 0;
18621862

18631863
err_free_irq:
1864+
/* Disable PCI interrupts */
1865+
iowrite32(0, pcie->reg_base + KVASER_PCIEFD_IEN_REG);
18641866
free_irq(pcie->pci->irq, pcie);
18651867

18661868
err_teardown_can_ctrls:

0 commit comments

Comments
 (0)