From 661b742e292d88dbc70255109e978ec77a91a6e2 Mon Sep 17 00:00:00 2001 From: Gianluca Guida Date: Sun, 23 Sep 2012 00:45:47 +0200 Subject: Fix panic on irq >= 16 * linux/src/drivers/net/pci-scan.c (pci_drv_register): Skip device if we are getting an invalid IRQ >= 16 and different from 255 (it happens in some motherboard). --- linux/src/drivers/net/pci-scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux') diff --git a/linux/src/drivers/net/pci-scan.c b/linux/src/drivers/net/pci-scan.c index 6187d5d..60525b7 100644 --- a/linux/src/drivers/net/pci-scan.c +++ b/linux/src/drivers/net/pci-scan.c @@ -347,7 +347,7 @@ int pci_drv_register(struct drv_id_info *drv_id, void *initial_device) pci_tbl[chip_idx].name, pciaddr, irq); if ( ! (pci_flags & PCI_UNUSED_IRQ) && - (irq == 0 || irq == 255)) { + (irq == 0 || irq >= 16)) { if (pci_bus == 32) /* Broken CardBus activation. */ printk(KERN_WARNING "Resources for CardBus device '%s' have" " not been allocated.\n" -- cgit v1.2.3