]> git.dujemihanovic.xyz Git - linux.git/commit
tpm_tis: Do *not* flush uninitialized work
authorJan Beulich <jbeulich@suse.com>
Wed, 29 May 2024 12:23:25 +0000 (15:23 +0300)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 4 Jun 2024 22:18:01 +0000 (01:18 +0300)
commit0ea00e249ca992adee54dc71a526ee70ef109e40
tree1ec5a75bcbfd63dde8313d2c8aa818afd038403e
parent32f88d65f01bf6f45476d7edbe675e44fb9e1d58
tpm_tis: Do *not* flush uninitialized work

tpm_tis_core_init() may fail before tpm_tis_probe_irq_single() is
called, in which case tpm_tis_remove() unconditionally calling
flush_work() is triggering a warning for .func still being NULL.

Cc: stable@vger.kernel.org # v6.5+
Fixes: 481c2d14627d ("tpm,tpm_tis: Disable interrupts after 1000 unhandled IRQs")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_core.c