[PATCH 6.12 122/826] tpm: fix signed/unsigned bug when checking event logs