[PATCH] ipmi_si_intf.c sets bad class_mask with PCI_DEVICE_CLASS

Taken from http://bugzilla.kernel.org/show_bug.cgi?id=7439

It looks like device registration in drivers/char/ipmi/ipmi_si_intf.c was
cleaned up and a small error was made when setting the class_mask. The fix
is simple as the correct mask value is defined in the code but is not used.

Acked-by: Corey Minyard <minyard@acm.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Yvan Seth and committed by Linus Torvalds d13adb60 7ef55b8a

+1 -1
+1 -1
drivers/char/ipmi/ipmi_si_intf.c
··· 1867 1868 static struct pci_device_id ipmi_pci_devices[] = { 1869 { PCI_DEVICE(PCI_HP_VENDOR_ID, PCI_MMC_DEVICE_ID) }, 1870 - { PCI_DEVICE_CLASS(PCI_ERMC_CLASSCODE, PCI_ERMC_CLASSCODE) } 1871 }; 1872 MODULE_DEVICE_TABLE(pci, ipmi_pci_devices); 1873
··· 1867 1868 static struct pci_device_id ipmi_pci_devices[] = { 1869 { PCI_DEVICE(PCI_HP_VENDOR_ID, PCI_MMC_DEVICE_ID) }, 1870 + { PCI_DEVICE_CLASS(PCI_ERMC_CLASSCODE, PCI_ERMC_CLASSCODE_MASK) } 1871 }; 1872 MODULE_DEVICE_TABLE(pci, ipmi_pci_devices); 1873