projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b1464
)
x86/hpet: Check for irq==0 when allocating hpet MSI interrupts
author
Jiang Liu
<jiang.liu@linux.intel.com>
Sat, 20 Jun 2015 09:50:50 +0000
(11:50 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Sat, 20 Jun 2015 10:00:58 +0000
(12:00 +0200)
irq == 0 is not a valid irq for a irqdomain MSI allocation, but hpet
code checks only for negative return values.
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Link:
http://lkml.kernel.org/r/558447AF.30703@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/hpet.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/hpet.c
b/arch/x86/kernel/hpet.c
index e2449cf38b06eb43bb9d00752fd320e8748f13c3..c47aab35a17ec4ef059721c5fd78103d5c18d7d9 100644
(file)
--- a/
arch/x86/kernel/hpet.c
+++ b/
arch/x86/kernel/hpet.c
@@
-578,7
+578,7
@@
static void hpet_msi_capability_lookup(unsigned int start_timer)
continue;
irq = hpet_assign_irq(hpet_domain, hdev, hdev->num);
- if (irq < 0)
+ if (irq <
=
0)
continue;
sprintf(hdev->name, "hpet%d", i);