mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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>
This commit is contained in:
parent
f3064b397a
commit
0d4e0cc591
1 changed files with 1 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue