]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tpm,tpm_tis: Avoid warning splat at shutdown
authorLino Sanfilippo <l.sanfilippo@kunbus.com>
Thu, 1 Feb 2024 11:36:45 +0000 (12:36 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@iki.fi>
Mon, 11 Mar 2024 22:26:05 +0000 (00:26 +0200)
commitb7ab4bbd0188f3985b821fa09456b11105a8dedf
tree3bde2dd273feb8abe3ac47fc62f34a88e5b94905
parentd5166a49508df7a60a1c437b7a33cd688f478055
tpm,tpm_tis: Avoid warning splat at shutdown

If interrupts are not activated the work struct 'free_irq_work' is not
initialized. This results in a warning splat at module shutdown.

Fix this by always initializing the work regardless of whether interrupts
are activated or not.

cc: stable@vger.kernel.org
Fixes: 481c2d14627d ("tpm,tpm_tis: Disable interrupts after 1000 unhandled IRQs")
Reported-by: Jarkko Sakkinen <jarkko@kernel.org>
Closes: https://lore.kernel.org/all/CX32RFOMJUQ0.3R4YCL9MDCB96@kernel.org/
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_core.c