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)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 4 Sep 2023 18:56:09 +0000 (21:56 +0300)
commit9c377852ddfdc557b1370f196b0cfdf28d233460
tree24dcb39c21aefc488e4d4703aca11049b3c71ec4
parent708283abf896dd4853e673cc8cba70acaf9bf4ea
tpm_crb: Fix an error handling path in crb_acpi_add()

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>
drivers/char/tpm/tpm_crb.c