esp-idf/components/driver/i2c
Eric Wheeler 27690e0990 fix(i2c_master): fix deadlock on s_i2c_transaction_start failure
As pointed out in PR #13134 by @MatthiasKunnen, there is a deadlock in
`s_i2c_synchronous_transaction()` if `s_i2c_transaction_start()` should fail
because, on error, s_i2c_synchronous_transaction() returns before releasing the
lock.

This commit fixes the deadlock without any other changes.

Closes: #13387

Signed-off-by: Eric Wheeler <esp-idf@z.ewheeler.org>
2024-04-01 10:15:39 +08:00
..
include/driver fix(docs): fixed doxygen warnings in few headers 2023-12-19 13:12:28 +05:30
i2c_common.c feat(i2c_slave): Add new implementation and API for I2C slave 2023-10-24 18:44:49 +08:00
i2c_master.c fix(i2c_master): fix deadlock on s_i2c_transaction_start failure 2024-04-01 10:15:39 +08:00
i2c_private.h feat(i2c_slave): Add new implementation and API for I2C slave 2023-10-24 18:44:49 +08:00
i2c_slave.c feat(i2c_slave): Add new implementation and API for I2C slave 2023-10-24 18:44:49 +08:00
i2c.c feat(i2c): Add new API and implementation for I2C driver 2023-08-10 11:55:54 +08:00
linker.lf feat(i2c): Add new API and implementation for I2C driver 2023-08-10 11:55:54 +08:00