From a73cbbef8abbfafbf1a44cda4e2ca76939ef0fbd Mon Sep 17 00:00:00 2001 From: Doug Ambrisko Date: Fri, 4 Nov 2011 01:58:55 +0000 Subject: [PATCH] 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 --- sys/dev/mpt/mpt_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index 7e3211b4722..639e488158d 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;