Thread (4 messages) 4 messages, 3 authors, 7d ago

Re: [PATCH] net: wan: farsync: disable PCI device on removal

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-09-18 23:55:56
Also in: lkml, stable

On Wed, 16 Sep 2026 14:31:18 +0800 Guangshuo Li wrote:
fst_add_one() calls pci_enable_device() to enable the PCI device. The
probe failure paths call pci_disable_device() to release the matching
enable reference, but fst_remove_one() does not disable the device
after a successful probe.

As a result, the PCI device enable reference remains unbalanced after
the driver is removed.

Call pci_disable_device() after the existing interrupt, tasklet,
mapping, DMA and PCI region cleanup to release the enable reference.

This issue was found by manual code inspection.
Ancient stuff, no point.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help