On Mon Jun 5, 2023 at 8:59 PM EEST, Alexander Steffen wrote: > +static int tpm_tis_recv_with_retries(struct tpm_chip *chip, u8 *buf, size_t count) > +{ > + struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); > + unsigned int try; > + int rc = 0; > + > + if (count < TPM_HEADER_SIZE) { > + rc = -EIO; > + goto out; > + } if (count < TPM_HEADER_SIZE) return -EIO; BR, Jarkko