Skip to content

Commit 6359691

Browse files
u1f35cjarkkojs
authored andcommitted
tpm: Convert warn to dbg in tpm2_start_auth_session()
TPM2 sessions have been flushed lazily since commit df745e2 ("tpm: Lazily flush the auth session"). If /dev/tpm{rm}0 is not accessed in-between two in-kernel calls, it is possible that a TPM2 session is re-started before the previous one has been completed. This causes a spurios warning in a legit run-time condition, which is also correctly addressed with a fast return path: [ 2.944047] tpm tpm0: auth session is active Address the issue by changing dev_warn_once() call to a dev_dbg_once() call. [jarkko: Rewrote the commit message, and instead of dropping converted to a debug message.] Signed-off-by: Jonathan McDowell <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
1 parent 668f953 commit 6359691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/tpm/tpm2-sessions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ int tpm2_start_auth_session(struct tpm_chip *chip)
982982
int rc;
983983

984984
if (chip->auth) {
985-
dev_warn_once(&chip->dev, "auth session is active\n");
985+
dev_dbg_once(&chip->dev, "auth session is active\n");
986986
return 0;
987987
}
988988

0 commit comments

Comments
 (0)