[PATCH] tpm: check mem start and len