diff options
Diffstat (limited to 'sys/pci/agp_ali.c')
-rw-r--r-- | sys/pci/agp_ali.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/pci/agp_ali.c b/sys/pci/agp_ali.c index b9b2c13..fc99574 100644 --- a/sys/pci/agp_ali.c +++ b/sys/pci/agp_ali.c @@ -102,6 +102,10 @@ agp_ali_attach(device_t dev) return error; sc->initial_aperture = AGP_GET_APERTURE(dev); + if (sc->initial_aperture == 0) { + device_printf(dev, "bad initial aperture size, disabling\n"); + return ENXIO; + } for (;;) { gatt = agp_alloc_gatt(dev); |