mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 07:12:52 -04:00
pci_iov: Add a device_printf if out of bus numbers
Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D20591
This commit is contained in:
parent
36a0019238
commit
6a4f0c0637
1 changed files with 1 additions and 0 deletions
|
|
@ -736,6 +736,7 @@ pci_iov_config(struct cdev *cdev, struct pci_iov_arg *arg)
|
|||
|
||||
/* We don't yet support allocating extra bus numbers for VFs. */
|
||||
if (pci_get_bus(dev) != PCI_RID2BUS(last_rid)) {
|
||||
device_printf(dev, "not enough PCIe bus numbers for VFs\n");
|
||||
error = ENOSPC;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue