diff options
author | ambrisko <ambrisko@FreeBSD.org> | 2011-11-04 01:58:55 +0000 |
---|---|---|
committer | ambrisko <ambrisko@FreeBSD.org> | 2011-11-04 01:58:55 +0000 |
commit | bea0b6754606ed3aba61b582c7d4c6765c96a158 (patch) | |
tree | eab6376c8b6c27c8826edbbb2672e5c4396348a6 /sys | |
parent | 14312627659e83696790fe5cb90d4da4377f8da8 (diff) | |
download | FreeBSD-src-bea0b6754606ed3aba61b582c7d4c6765c96a158.zip FreeBSD-src-bea0b6754606ed3aba61b582c7d4c6765c96a158.tar.gz |
Change mpt(4) probe to be an exact match to a PCI device ID. The current
code makes the mpt(4) check for 0x005A and mistakenly attach to a mfi(4)
device 0x005B. Without this fix, mpt(4) will panic if this mfi(4) card
is in the system.
Reviewed by: mjacob
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mpt/mpt_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index 7e3211b..639e488 100644 --- a/sys/dev/mpt/mpt_pci.c +++ b/sys/dev/mpt/mpt_pci.c @@ -232,7 +232,7 @@ mpt_pci_probe(device_t dev) return (ENXIO); } - switch ((pci_get_device(dev) & ~1)) { + switch (pci_get_device(dev)) { case PCI_PRODUCT_LSI_FC909: desc = "LSILogic FC909 FC Adapter"; break; |