diff options
| author | Alper Ak <alperyasinak1@gmail.com> | 2025-12-26 15:09:27 +0300 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-02-03 02:36:32 +0200 |
| commit | 3e91b44c93ad2871f89fc2a98c5e4fe6ca5db3d9 (patch) | |
| tree | dd98a4e35f78a20264644df38c8980b5abd2e68c /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | bbd6e97c836cbeb9606d7b7e5dcf8a1d89525713 (diff) | |
tpm: st33zp24: Fix missing cleanup on get_burstcount() error
get_burstcount() can return -EBUSY on timeout. When this happens,
st33zp24_send() returns directly without releasing the locality
acquired earlier.
Use goto out_err to ensure proper cleanup when get_burstcount() fails.
Fixes: bf38b8710892 ("tpm/tpm_i2c_stm_st33: Split tpm_i2c_tpm_st33 in 2 layers (core + phy)")
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
