DragonFlyBSD Kernel Audit
DF-1991 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/crypto/tpm/tpm_crb.c b/sys/dev/crypto/tpm/tpm_crb.c
--- a/sys/dev/crypto/tpm/tpm_crb.c
+++ b/sys/dev/crypto/tpm/tpm_crb.c
@@ -255,7 +255,7 @@
 		if ((RD4(sc, off) & mask) == val)
 			return (true);
 
-		tsleep(tpm_wait_for_u32, 0, "TPM in polling mode", 1);
+		tsleep(tpm_wait_for_u32, PCATCH, "TPMpoll", 1);
 		timeout -= ustick;
 	}
 	return (false);