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