mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 18:35:22 +08:00
Coverity Id 27 * libmisc/fsmount/fsmount.c: Ensure calloc() returns memory and then we do not have to check null when freeing it. Coverity noted it was used before being checked for NULL.
# # # fsmount information # # Author: Thomas Doerfler 02/07/2003 # # README,v 1.1 1999/07/09 17:23:15 joel Exp # fsmount.c contains the function fsmount. It processes the fs table given as an parameter to create the listed mount points and mount the corresponding file systems to their mount points. See "c/src/tests/samples/fileio" for a sample on how to use this function. The field "report_reasons" specifies, what results of the mount point creation/mount operations should print to the console. The field "abort_reasons" specifies, what results of the mount point creation/mount operations should abort the function. Do not set the "abort_reasons" bit, unless you want to stop the processing of the fsmount table after the first successful mount.