[PATCH 3/3] tpm-dev-common: Reject too short writes