[PATCH 5.4 051/321] tpm: fix signed/unsigned bug when checking event logs