diff options
-rw-r--r-- | sys/dev/pci/pciide.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index 5677f915121..30d9630229b 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.120 2003/03/29 11:02:09 grange Exp $ */ +/* $OpenBSD: pciide.c,v 1.121 2003/04/20 21:09:28 grange Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -4452,8 +4452,9 @@ pdc20265_pci_intr(arg) /* * In case of shared IRQ check that the interrupt * was actually generated by this channel. + * Only check the channel that is enabled. */ - if (PDC_IS_268(sc)) { + if (cp->hw_ok && PDC_IS_268(sc)) { if ((pdc268_config_read(wdc_cp, 0x0b) & PDC268_INTR) == 0) continue; |