RTEMS | nvdisk.c: Fixed garbage name generation and added memory cleanup (!906)

Prakhar Kumar (@prakhar) gitlab at rtems.org
Wed Jan 14 07:01:37 UTC 2026



Prakhar Kumar created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/906

Project:Branches: prakhar/rtems:nvdisk_initialize_fix to rtems/rtos/rtems:main
Author:   Prakhar Kumar




## Summary

nvdisk.c: Fixed garbage name generation and added memory cleanup

The nvdisk driver modified the character at the position
returned by sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME), which
points past the intended device suffix and results in
undefined behavior.

Adjust the index to update the suffix character directly,
ensuring correct device names (nvda, nvdb, ...) and also added memory cleanup


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/906
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/20260114/a6fda385/attachment.htm>


More information about the bugs mailing list