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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:16 +0000 (16:33 +0200)
commit86f1c523d42255923ff2aa3c61760b1a1f7325a0
treee7a0f90a0a564bcff3c25d2629f31bac509df046
parent387039b25077f15c53520028437ab7358a7278fc
tpm/tpm_tis: Free IRQ if probing fails

commit b160c94be5d2816b62c8ac338605668304242959 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm_tis_core.c