diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 14:56:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-04-07 14:56:39 +0000 |
commit | 156b9cd06d7ddf0077a574aa796de9bb39eebc59 (patch) | |
tree | 2174954a2a8c9779b82695ecc236b575d0ecc39e /sys | |
parent | 1c2acb9504683304dfa36a6597718d1fe1954857 (diff) |
Avoid using an uninitialized variable when downgrading PIO mode too much on
ITExpress chipsets. (similar to 1.243, with a deja vu)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pciide.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index df984f4b6df..b9c4572cd85 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.324 2011/04/03 15:36:03 jasper Exp $ */ +/* $OpenBSD: pciide.c,v 1.325 2011/04/07 14:56:38 miod Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -8450,6 +8450,7 @@ ite_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); |