diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-09-03 15:24:31 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-09-03 15:24:31 +0000 |
| commit | ab551d918cb8bfaf1a0a32e9560ba9e7aa55f7ad (patch) | |
| tree | 7fa9c7fc15cf671e051e174489b22a7d01d90c91 | |
| parent | 700a0cbacad01beb5488e91f7f4d2232bbbf5106 (diff) | |
Notes
| -rw-r--r-- | sys/dev/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index c4a1147d6162..5af67a377a66 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1344,7 +1344,7 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid, break; case SYS_RES_IOPORT: case SYS_RES_MEMORY: - if (*rid < PCIR_MAPS + 4*cfg->nummaps) { + if (*rid < PCIR_BAR(cfg->nummaps)) { /* * Enable the I/O mode. We should * also be allocating resources |
