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:
Val Packett 2024-09-25 15:17:16 -07:00 committed by Kevin Bowling
parent 36a0019238
commit 6a4f0c0637

View file

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