]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tpm: Disable TPM on tpm2_create_primary() failure
authorJarkko Sakkinen <jarkko@kernel.org>
Wed, 13 Nov 2024 18:35:39 +0000 (20:35 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 13 Nov 2024 19:10:45 +0000 (21:10 +0200)
commit423893fcbe7e9adc875bce4e55b9b25fc1424977
treeb1b8be1f11083b98c9a592a7eff624c98f8a9243
parent27184f8905ba680f22abf1707fbed24036a67119
tpm: Disable TPM on tpm2_create_primary() failure

The earlier bug fix misplaced the error-label when dealing with the
tpm2_create_primary() return value, which the original completely ignored.

Cc: stable@vger.kernel.org
Reported-by: Christoph Anton Mitterer <calestyo@scientia.org>
Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087331
Fixes: cc7d8594342a ("tpm: Rollback tpm2_load_null()")
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm2-sessions.c