]> 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)
commitda23825abd05812579a5b32af4a6820b24b8d21b
treed77c6c28975e3c673162563b921ad75f50360b74
parenta0c38019c29731fcb7b68cd5f4bbe4000d7b6a45
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