]> git.baikalelectronics.ru Git - kernel.git/commit
tpm/tpm_tis: Free IRQ if probing fails
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 12 Apr 2020 17:04:12 +0000 (20:04 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 20 Apr 2020 21:06:13 +0000 (00:06 +0300)
commit39fb429abf6eac458492a68bef2389d577ff6062
tree2c84532527b383375ba8f3f274d00a8c35ccd94b
parentcf5bca5825fcff244c23d535ed39eaac259163e2
tpm/tpm_tis: Free IRQ if probing fails

Call disable_interrupts() if we have to revert to polling in order not to
unnecessarily reserve the IRQ for the life-cycle of the driver.

Cc: stable@vger.kernel.org # 4.5.x
Reported-by: Hans de Goede <hdegoede@redhat.com>
Fixes: 6ba0b5490d67 ("tpm_tis: Refactor the interrupt setup")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c