Skip to content

Commit 08d08e2

Browse files
stefanbergerjarkkojs
authored andcommitted
tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support
Commit d2add27 ("tpm: Add NULL primary creation") introduced CONFIG_TCG_TPM2_HMAC. When this option is enabled on ppc64 then the following message appears in the kernel log due to a missing call to tpm2_sessions_init(). [ 2.654549] tpm tpm0: auth session is not active Add the missing call to tpm2_session_init() to the ibmvtpm driver to resolve this issue. Cc: [email protected] # v6.10+ Fixes: d2add27 ("tpm: Add NULL primary creation") Signed-off-by: Stefan Berger <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 3e9bff3 commit 08d08e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/char/tpm/tpm_ibmvtpm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,10 @@ static int tpm_ibmvtpm_probe(struct vio_dev *vio_dev,
698698
rc = tpm2_get_cc_attrs_tbl(chip);
699699
if (rc)
700700
goto init_irq_cleanup;
701+
702+
rc = tpm2_sessions_init(chip);
703+
if (rc)
704+
goto init_irq_cleanup;
701705
}
702706

703707
return tpm_chip_register(chip);

0 commit comments

Comments
 (0)