]> git.baikalelectronics.ru Git - kernel.git/commit
tpm_crb: Fix an error handling path in crb_acpi_add()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 25 Feb 2023 10:58:48 +0000 (11:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:27:58 +0000 (12:27 +0200)
commitc4807163e2d4cec9ca4a95eb8952a716f9c5ea1c
treeb5dc7d2d8a0343990117d6e5c75f576aae38ceab
parent46d3bc902b038d4e761d27a069afe5bc686b42eb
tpm_crb: Fix an error handling path in crb_acpi_add()

[ Upstream commit 9c377852ddfdc557b1370f196b0cfdf28d233460 ]

Some error paths don't call acpi_put_table() before returning.
Branch to the correct place instead of doing some direct return.

Fixes: 4d2732882703 ("tpm_crb: Add support for CRB devices based on Pluton")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Matthew Garrett <mgarrett@aurora.tech>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm_crb.c