Don't bind the IPS driver if no irq is assigned (typically BIOS bug). (rhbz 804353)

This commit is contained in:
Dave Jones 2012-03-20 16:50:59 -04:00
parent 5bbe9ea49d
commit 3b5b9ca4f6
2 changed files with 22 additions and 0 deletions

15
ips-noirq.patch Normal file
View File

@ -0,0 +1,15 @@
--- a/drivers/platform/x86/intel_ips.c
+++ a/drivers/platform/x86/intel_ips.c
@@ -1603,6 +1603,12 @@ static int ips_probe(struct pci_dev *dev, const struct pci_device_id *id)
goto error_unmap;
}
+ /* No IRQ assigned is a BIOS failure... */
+ if (dev->irq <= 0) {
+ ret = -ENODEV;
+ goto error_unmap;
+ }
+
/*
* IRQ handler for ME interaction
* Note: don't use MSI here as the PCH has bugs.

View File

@ -717,6 +717,8 @@ Patch14000: hibernate-freeze-filesystems.patch
Patch14010: lis3-improve-handling-of-null-rate.patch
Patch19000: ips-noirq.patch
Patch20000: utrace.patch
# Flattened devicetree support
@ -1439,6 +1441,8 @@ ApplyPatch hibernate-freeze-filesystems.patch
ApplyPatch lis3-improve-handling-of-null-rate.patch
ApplyPatch ips-noirq.patch
# utrace.
ApplyPatch utrace.patch
@ -2320,6 +2324,9 @@ fi
# '-' | |
# '-'
%changelog
* Tue Mar 20 2012 Dave Jones <davej@redhat.com>
- Don't bind the IPS driver if no irq is assigned (typically BIOS bug). (rhbz 804353)
* Tue Mar 20 2012 Josh Boyer <jwboyer@redhat.com>
- CVE-2012-1568: execshield: predictable ascii armour base address (rhbz 804957)
- mac80211: fix possible tid_rx->reorder_timer use after free