OSDN Git Service

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)
commitb160c94be5d2816b62c8ac338605668304242959
tree2c84532527b383375ba8f3f274d00a8c35ccd94b
parent29cb79795e324a8b65e7891d76f8f6ca911ba440
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: e3837e74a06d ("tpm_tis: Refactor the interrupt setup")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c