RTEMS | cpukit/libblock: Fixes off-by-1 and memory in flashdisk (!912)
Prakhar Kumar (@prakhar)
gitlab at rtems.org
Sun Apr 12 05:04:31 UTC 2026
Prakhar Kumar commented on a discussion on cpukit/libblock/src/flashdisk.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_148426
>
> return RTEMS_SUCCESSFUL;
> }
> +
> +static void rtems_fdisk_cleanup_helper (rtems_flashdisk *fd, bool *mutex_initialized)
> +{
> + uint32_t device;
> +
> + if(fd == NULL)
> + return;
> +
> + if((*mutex_initialized) == false) {
> + (*mutex_initialized) = true;
> + } else {
> + rtems_mutex_destroy(&fd->lock);
@chris i have resolved the issues, if you are available, it would be helpful if you review the code and resolve this thread.
Thank you.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/912#note_148426
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/20260412/365dcf98/attachment-0001.htm>
More information about the bugs
mailing list