summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-08-20 06:19:25 +0000
committersos <sos@FreeBSD.org>2004-08-20 06:19:25 +0000
commit3e339883075f86044be58432bdb882b73964acd2 (patch)
tree85e72a88cb7401eb47fee73407fe41a38260c758
parent30583f7adf72c716f54e01c3c0e72211586b4149 (diff)
downloadFreeBSD-src-3e339883075f86044be58432bdb882b73964acd2.zip
FreeBSD-src-3e339883075f86044be58432bdb882b73964acd2.tar.gz
DONT PANIC
Only call dmainit() if there is a valid busmaster resource.
-rw-r--r--sys/dev/ata/ata-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c
index 61e33a0..07b2208 100644
--- a/sys/dev/ata/ata-pci.c
+++ b/sys/dev/ata/ata-pci.c
@@ -535,7 +535,8 @@ ata_channel_attach(device_t dev)
ch->locking = ctlr->locking;
ch->reset = ctlr->reset;
- ctlr->dmainit(ch);
+ if (ctlr->r_res1)
+ ctlr->dmainit(ch);
if (ch->dma)
ch->dma->alloc(ch);
OpenPOWER on IntegriCloud