diff --git a/libstb/drivers/tpm_i2c_nuvoton.c b/libstb/drivers/tpm_i2c_nuvoton.c index 3679ddafcd49..d668000e4484 100644 --- a/libstb/drivers/tpm_i2c_nuvoton.c +++ b/libstb/drivers/tpm_i2c_nuvoton.c @@ -383,6 +383,7 @@ static int tpm_read_fifo(uint8_t* buf, size_t* buflen) prlog(PR_ERR, "NUVOTON: overflow on fifo read, c=%zd, " "bc=%d, bl=%zd\n", count, burst_count, *buflen); rc = STB_TPM_OVERFLOW; + goto error; } rc = tpm_i2c_request_send(tpm_device, SMBUS_READ,