summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-12-26 13:23:38 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2026-02-03 02:36:32 +0200
commitbbd6e97c836cbeb9606d7b7e5dcf8a1d89525713 (patch)
tree27e4a5d0ee23812eae3db15305dfddbf3f67f93a /include/linux/i2c/git@git.tavy.me:linux.git
parentdee65f79364c18033cabdf0728c7e7025405cf40 (diff)
tpm: tpm_i2c_infineon: Fix locality leak on get_burstcount() failure
get_burstcount() can return -EBUSY on timeout. When this happens, the function returns directly without releasing the locality that was acquired at the beginning of tpm_tis_i2c_send(). Use goto out_err to ensure proper cleanup when get_burstcount() fails. Fixes: aad628c1d91a ("char/tpm: Add new driver for Infineon I2C TIS TPM") Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> 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