diff options
author | sos <sos@FreeBSD.org> | 1999-10-11 11:04:43 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1999-10-11 11:04:43 +0000 |
commit | f0c09f5977c9c35f12cf73effd67050b3dac6adb (patch) | |
tree | aa1c390cdbc2795ac7eac418ae43add9d12fa511 /sys | |
parent | aafa907b0c44ed8a1514d392e23ed64d4fd130e4 (diff) | |
download | FreeBSD-src-f0c09f5977c9c35f12cf73effd67050b3dac6adb.zip FreeBSD-src-f0c09f5977c9c35f12cf73effd67050b3dac6adb.tar.gz |
Fix a bug in the isa attach code which would panic isa systems.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index b3343fe..2a4efbb 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -115,7 +115,7 @@ ata_isaprobe(device_t dev) /* check if allready in use by a PCI device */ for (ctlr = 0; ctlr < atanlun; ctlr++) { - if (atadevices[ctlr]->ioaddr == rman_get_start(port)) { + if (atadevices[ctlr] && atadevices[ctlr]->ioaddr==rman_get_start(port)){ printf("ata-isa%d: already registered as ata%d\n", device_get_unit(dev), ctlr); bus_release_resource(dev, SYS_RES_IOPORT, 0, port); |