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)
commitbafac298fb20e9ae1305c710d4fd8d20c5911afa
treed77c6c28975e3c673162563b921ad75f50360b74
parentf6b1464f647424bbeb609ec832428e4079940701
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