summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorJimmy Assarsson <extja@kvaser.com>2023-05-16 15:43:18 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2023-05-17 09:02:40 +0200
commit11164bc39459335ab93c6e99d53b7e4292fba38b (patch)
tree978acbb061b1f4733f3603ce8773abbdfd4b0b22 /drivers/net/can
parent262d7a52ba27525e3c1203230c9f0524e48bbb34 (diff)
downloadlinux-stable-11164bc39459335ab93c6e99d53b7e4292fba38b.tar.gz
linux-stable-11164bc39459335ab93c6e99d53b7e4292fba38b.tar.bz2
linux-stable-11164bc39459335ab93c6e99d53b7e4292fba38b.zip
can: kvaser_pciefd: Disable interrupts in probe error path
Disable interrupts in error path of probe function. Fixes: 26ad340e582d ("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>
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/kvaser_pciefd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/kvaser_pciefd.c b/drivers/net/can/kvaser_pciefd.c
index 4fafb7658349..be189edb256c 100644
--- a/drivers/net/can/kvaser_pciefd.c
+++ b/drivers/net/can/kvaser_pciefd.c
@@ -1861,6 +1861,8 @@ static int kvaser_pciefd_probe(struct pci_dev *pdev,
return 0;
err_free_irq:
+ /* Disable PCI interrupts */
+ iowrite32(0, pcie->reg_base + KVASER_PCIEFD_IEN_REG);
free_irq(pcie->pci->irq, pcie);
err_teardown_can_ctrls: