mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-03 15:15:01 +00:00
PR: 239143
Reported and tested by: Wes Maag <jwmaag@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
e5926fd368
commit
b7b6b7a9c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349988
|
@ -770,6 +770,13 @@ dmar_find(device_t dev, bool verbose)
|
|||
const char *banner;
|
||||
int i, dev_domain, dev_busno, dev_path_len;
|
||||
|
||||
/*
|
||||
* This function can only handle PCI(e) devices.
|
||||
*/
|
||||
if (device_get_devclass(device_get_parent(dev)) !=
|
||||
devclass_find("pci"))
|
||||
return (NULL);
|
||||
|
||||
dmar_dev = NULL;
|
||||
dev_domain = pci_get_domain(dev);
|
||||
dev_path_len = dmar_dev_depth(dev);
|
||||
|
|
Loading…
Reference in a new issue