RTEMS | arm/stm32f4: Fix I2C mutex initialization and potential mutex leak (!1142)
Kinsey Moore (@opticron)
gitlab at rtems.org
Wed Mar 18 18:43:26 UTC 2026
Kinsey Moore started a new discussion on bsps/arm/stm32f4/i2c/i2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1142#note_146000
>
> /* 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;
Please fix the indentation on these lines.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1142#note_146000
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/e5b9fc25/attachment-0001.htm>
More information about the bugs
mailing list