On Sat, 25 Jul 2026, Bjoern A. Zeeb wrote:

Can you test this?

% git diff
diff --git sys/compat/linuxkpi/common/src/linux_pci.c sys/compat/linuxkpi/common/src/linux_pci.c
index a49254425b5d..b1c28a188b94 100644
--- sys/compat/linuxkpi/common/src/linux_pci.c
+++ sys/compat/linuxkpi/common/src/linux_pci.c
@@ -370,7 +370,7 @@ lkpi_pci_dev_release(struct device *dev)
        */

       /* Clear the hierarchy recursively to root. */
-       if (pdev->bus->self != pdev) {
+       if (pdev->bus->self != pdev && pdev->bus->self != NULL) {
               pci_dev_put(pdev->bus->self);
               pdev->bus->self = NULL;
       }


Just for the archives: ths above change is a NOP as pci_dev_put() does
check for the passed in pdev to be != NULL;  so contrary to what I have
said in the thread I'll not commit this.

/bz

--
Bjoern A. Zeeb                                                     r15:7

Reply via email to