Files
rtems/cpukit/libblock
Yang Zhang befb19c81f libblock: Return RTEMS_NO_MEMORY on allocation failure
In rtems_bdpart_register(), when create_logical_disk_name() fails to
allocate memory and returns NULL, the error code variable 'esc' was
incorrectly assigned 'sc' (which evaluates to RTEMS_SUCCESSFUL).

This caused the function to falsely return RTEMS_SUCCESSFUL even when
memory allocation failed. Fix it by assigning RTEMS_NO_MEMORY.
2026-08-03 10:08:40 +08:00
..

libblock

This directory contains the block device (HDD, CDROMs, etc) support code. It includes:

  • block device driver interface
  • generic open/close/read/write/ioctl primitives for block device drivers
  • disk I/O buffering
  • logical disk support
  • RAM disk block device driver

Victor V. Vengerov, vvv@oktet.ru November, 7 2001