[PATCH openEuler-5.10-LTS 37/44] tpm: Fix buffer access in tpm2_get_tpm_pt()