summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2003-04-16 08:30:10 +0000
committersos <sos@FreeBSD.org>2003-04-16 08:30:10 +0000
commit212b00163912ee0d52ab4803ff29222d239380ed (patch)
tree6deeb95e628a6136f7719dc063ca3fd98ea383a5 /sys
parent5be29b82039d906cad0869d06004a1e9962c77db (diff)
downloadFreeBSD-src-212b00163912ee0d52ab4803ff29222d239380ed.zip
FreeBSD-src-212b00163912ee0d52ab4803ff29222d239380ed.tar.gz
Fix a panic with Cenatek controllers.
Diffstat (limited to 'sys')
-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 b79a043..217e35f 100644
--- a/sys/dev/ata/ata-pci.c
+++ b/sys/dev/ata/ata-pci.c
@@ -509,10 +509,11 @@ ata_pcisub_probe(device_t dev)
if ((error = ctlr->allocate(dev, ch)))
return error;
+ if (ctlr->chip)
+ ch->chiptype = ctlr->chip->chipid;
ch->device[MASTER].setmode = ctlr->setmode;
ch->device[SLAVE].setmode = ctlr->setmode;
ch->locking = ctlr->locking;
- ch->chiptype = ctlr->chip->chipid;
return ata_probe(dev);
}
OpenPOWER on IntegriCloud