Date: Wed, 23 Aug 2017 16:50:10 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322816 - head/sys/compat/linuxkpi/common/src Message-ID: <201708231650.v7NGoApe087597@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Wed Aug 23 16:50:10 2017 New Revision: 322816 URL: https://svnweb.freebsd.org/changeset/base/322816 Log: Set the bus number field when attaching a PCI device. MFC after: 1 week Modified: head/sys/compat/linuxkpi/common/src/linux_pci.c Modified: head/sys/compat/linuxkpi/common/src/linux_pci.c ============================================================================== --- head/sys/compat/linuxkpi/common/src/linux_pci.c Wed Aug 23 15:47:42 2017 (r322815) +++ head/sys/compat/linuxkpi/common/src/linux_pci.c Wed Aug 23 16:50:10 2017 (r322816) @@ -167,6 +167,7 @@ linux_pci_attach(device_t dev) if (pdev->bus == NULL) { pbus = malloc(sizeof(*pbus), M_DEVBUF, M_WAITOK | M_ZERO); pbus->self = pdev; + pbus->number = pci_get_bus(dev); pdev->bus = pbus; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708231650.v7NGoApe087597>