]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 25 May 2020 08:41:50 +0000 (10:41 +0200)
commitccd86691b9ef37a5bf69fae1d65d3fafd24c2bfc
tree8e36fc573c457ab5a7e1f16ec2df578532d07312
parent2a1d9847466a65976b7802b79962679bd5266dc9
tpm/tpm_tis: Free IRQ if probing fails

BugLink: https://bugs.launchpad.net/bugs/1876361
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/char/tpm/tpm_tis_core.c