]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hpet: Check for irq==0 when allocating hpet MSI interrupts
authorJiang Liu <jiang.liu@linux.intel.com>
Sat, 20 Jun 2015 09:50:50 +0000 (11:50 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 20 Jun 2015 10:00:58 +0000 (12:00 +0200)
commit4eb006d1a6cbe503f3d74eaa670a2b533198d185
treed77c6c28975e3c673162563b921ad75f50360b74
parentc6beec514d9085f287d3bc2263d018cef8621757
x86/hpet: Check for irq==0 when allocating hpet MSI interrupts

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