summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-04-19 17:14:06 +0000
committerjhb <jhb@FreeBSD.org>2007-04-19 17:14:06 +0000
commitfcb07fc4cfd798719732de10e9406bcea4c5e161 (patch)
tree8f5e6686e79c3b7c5f78fbe9fc006cc4687e7a4f /sys/pci
parenta88ccacb7fba85bb210c7170a414a4787232e6ff (diff)
downloadFreeBSD-src-fcb07fc4cfd798719732de10e9406bcea4c5e161.zip
FreeBSD-src-fcb07fc4cfd798719732de10e9406bcea4c5e161.tar.gz
Oops, fix intsmb(4) attach. Don't overwrite the 'value' holding the
interrupt mode with the SMB revision before checking 'value' for a valid interrupt mode. Reported by: Ulrich Spoerlein <uspoerlein of gmail fame>
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/intpm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index ab83e75..a241795 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -139,8 +139,7 @@ intsmb_attach(device_t dev)
}
device_printf(dev, "intr %s %s ", str,
(value & 1) ? "enabled" : "disabled");
- value = pci_read_config(dev, PCI_REVID_SMB, 1);
- printf("revision %d\n", value);
+ printf("revision %d\n", pci_read_config(dev, PCI_REVID_SMB, 1));
if ((value & 0xe) != PCI_INTR_SMB_IRQ9) {
device_printf(dev, "Unsupported interrupt mode\n");
OpenPOWER on IntegriCloud