commit | 021989622810b02aab4b24f91e1f5ada2b654579 | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Tue Sep 28 23:20:23 2010 +0200 |
committer | H. Peter Anvin <hpa@linux.intel.com> | Thu Sep 30 15:57:35 2010 -0700 |
tree | b82183d2b69b8510122872206ffa7d75d5542131 | |
parent | 1cf180c94e9166cda083ff65333883ab3648e852 [diff] |
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>