Commit 423893fc authored by Jarkko Sakkinen's avatar Jarkko Sakkinen
Browse files

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: default avatarChristoph Anton Mitterer <calestyo@scientia.org>
Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087331


Fixes: cc7d8594 ("tpm: Rollback tpm2_load_null()")
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
parent 27184f89
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment