summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorGianluca Guida <glguida@gmail.com>2012-09-23 00:45:47 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-09-23 00:45:47 +0200
commit661b742e292d88dbc70255109e978ec77a91a6e2 (patch)
tree1fdf91bb25166f98aefcf8ab367f598fd578fe01 /linux
parent0ec3a87748d9e90d21116038e386cace5ea4a460 (diff)
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).
Diffstat (limited to 'linux')
-rw-r--r--linux/src/drivers/net/pci-scan.c2
1 files changed, 1 insertions, 1 deletions
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"