RTEMS | bsps/shared/gpio: Fix group define leaks (!1281)

Yang Zhang (@Chloe) gitlab at rtems.org
Fri Jun 5 06:13:26 UTC 2026




Yang Zhang commented on a discussion on bsps/shared/dev/gpio/gpio-support.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1281#note_151983

 >         );
 >  
 >    if ( sc != RTEMS_SUCCESSFUL ) {
 > -    sc = rtems_gpio_release_multiple_pins(
 > +    release_sc = rtems_gpio_release_multiple_pins(

In the gpio_multi_select failure paths the function returns a constant, so I dropped release_sc and reuse sc there. I kept it only in the CREATE_LOCK failure path, where the returned sc carries the lock-creation error and must not be clobbered by the release calls while still asserting they succeed.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1281#note_151983
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/20260605/1390f12f/attachment-0001.htm>


More information about the bugs mailing list