Re: amd64 boot crash for lack of being set up to use of rtw89; linuxkpi calls on the stack, 0xdeadc0dedeadc13e and such involved, devfs_ioctl with dsw=0xdeadc0dedeadc0de
"Bjoern A. Zeeb" <[email protected]> Mon, 27 Jul 2026 13:14:28 +0000 (UTC)
| Newsgroups | gmane.os.freebsd.current |
|---|---|
| Message-ID | <[email protected]> |
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