summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-26 22:15:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-26 22:15:00 +0000
commit8fa5a1d0f63d497acc7c93402d426ef6d5a0c55c (patch)
treea9eaaeadf2e03f6e402a0a5524da5813768f8e39 /sys/dev/pci/pciide.c
parent676709553639f24690a62a929c32a72e9f2d96cd (diff)
Avoid using an uninitialized variable when downgrading PIO mode too much on
nForce chipsets.
Diffstat (limited to 'sys/dev/pci/pciide.c')
-rw-r--r--sys/dev/pci/pciide.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 0c621ac86b5..44ab84074c4 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.242 2006/06/26 02:40:40 brad Exp $ */
+/* $OpenBSD: pciide.c,v 1.243 2006/06/26 22:14:59 miod Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -7881,6 +7881,7 @@ nforce_setup_channel(struct channel_softc *chp)
else
mode = drvp->DMA_mode + 2;
} else {
+ mode = drvp->PIO_mode;
goto pio;
}
idedma_ctl |= IDEDMA_CTL_DRV_DMA(drive);