[PATCH 6.6 124/676] tpm: fix signed/unsigned bug when checking event logs