]> git.baikalelectronics.ru Git - kernel.git/commit
x86, hpet: Fix bogus error check in hpet_assign_irq()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 28 Sep 2010 21:20:23 +0000 (23:20 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 30 Sep 2010 22:57:35 +0000 (15:57 -0700)
commit8dc8ed181f69599ee5a80d69665285c41c2cacdf
treeb82183d2b69b8510122872206ffa7d75d5542131
parentb7563f5657ee7b184e2e668672dd8d95895a250b
x86, hpet: Fix bogus error check in hpet_assign_irq()

create_irq() returns -1 if the interrupt allocation failed, but the
code checks for irq == 0.

Use create_irq_nr() instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Venkatesh Pallipadi <venki@google.com>
LKML-Reference: <alpine.LFD.2.00.1009282310360.2416@localhost6.localdomain6>
Cc: stable@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/hpet.c