From fcb07fc4cfd798719732de10e9406bcea4c5e161 Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 19 Apr 2007 17:14:06 +0000 Subject: [PATCH] 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 --- sys/pci/intpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c index ab83e7595b2..a241795cc90 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"); -- 2.45.0