RTEMS | libi2c: Use RTEMS thread API and support initialization at device driver level (!821)

Gedare Bloom (@gedare) gitlab at rtems.org
Mon Dec 8 20:21:36 UTC 2025




Gedare Bloom started a new discussion on cpukit/libi2c/libi2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/821#note_136987

 >        else
 >          err = RTEMS_SUCCESSFUL;
 >  
 > -      LIBUNLOCK ();
 > +      rtems_mutex_unlock(&libmutex);
 >        return err ? -err : minor;
 >      }
 > +    rtems_mutex_unlock(&libmutex);

This unlock is inside the for loop, but there is not a lock inside the for loop. I think this is mismatched.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/821#note_136987
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/20251208/8affecef/attachment-0001.htm>


More information about the bugs mailing list