RTEMS | arm/stm32f4: Fix I2C mutex initialization and potential mutex leak (!1142)
Mohamed Ayman (@mohamedayman23)
gitlab at rtems.org
Wed Mar 18 19:27:45 UTC 2026
Mohamed Ayman commented on a discussion on bsps/arm/stm32f4/i2c/i2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1142#note_146058
>
> /* Check if no stop is active. */
> if(cr1 & STM32F4_I2C_CR1_STOP) {
> - return RTEMS_IO_ERROR;
> + rtems_semaphore_release(e->mutex);
> + return RTEMS_IO_ERROR;
I’ve applied the requested changes and squashed all the commits.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1142#note_146058
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260318/5f093332/attachment.htm>
More information about the bugs
mailing list