]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:31 +0000 (15:28 +0200)
commit1d7317d5b636e7816abe7103211741f5bdbdfd2c
treee4d5a09f69535a623975a168b29746fca43e5ffb
parent74c564b7f008eb249c2a97eefc5a7639f280590e
tpm,tpm_tis: Avoid warning splat at shutdown

[ Upstream commit b7ab4bbd0188f3985b821fa09456b11105a8dedf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm_tis_core.c