svn commit: r322816 - head/sys/compat/linuxkpi/common/src

Mark Johnston markj at FreeBSD.org
Wed Aug 23 16:50:12 UTC 2017


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;
 	}
 


More information about the svn-src-head mailing list