mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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.
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