]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tpm: Use managed allocation for bios event log
authorEddie James <eajames@linux.ibm.com>
Thu, 26 Jan 2023 21:08:09 +0000 (15:08 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:49 +0000 (12:50 +0100)
commit906ac470b16c96b5b8acb995fc5fcd3fbae17d46
treebef2250ae4b8720e2043e3c4268c245cae8909bc
parent5e8bee0e491455cba2f8cdd87271c8a85c1934ac
tpm: Use managed allocation for bios event log

[ Upstream commit 441b7152729f4a2bdb100135a58625fa0aeb69e4 ]

Since the bios event log is freed in the device release function,
let devres handle the deallocation. This will allow other memory
allocation/mapping functions to be used for the bios event log.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Tested-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Stable-dep-of: a3a860bc0fd6 ("tpm: Change to kvalloc() in eventlog/acpi.c")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/eventlog/acpi.c
drivers/char/tpm/eventlog/efi.c
drivers/char/tpm/eventlog/of.c
drivers/char/tpm/tpm-chip.c