RTEMS | rtems-fdt: add test, refactor, and fix bugs (!1257)

Gedare Bloom (@gedare) gitlab at rtems.org
Thu May 28 14:32:26 UTC 2026




Gedare Bloom commented on a discussion on cpukit/libmisc/rtems-fdt/rtems-fdt.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1257#note_151182

 >  {
 >    rtems_fdt_data *fdt;
 >  
 > -  fdt = rtems_fdt_lock();
 > -
 >    if ( !rtems_fdt_valid_handle( handle ) ) {
 > -    rtems_fdt_unlock( fdt );
 >      return -RTEMS_FDT_ERR_INVALID_HANDLE;
 >    }
 >  
 > +  fdt = rtems_fdt_lock();

Good catch. I made the change as suggested.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1257#note_151182
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/20260528/935149b0/attachment-0001.htm>


More information about the bugs mailing list