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;
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to