summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-12-10 15:00:27 +1100
committerChris Johns <chrisj@rtems.org>2013-12-10 15:00:27 +1100
commitc59f668c425ed17eaa2e484984d948c16e5155c9 (patch)
tree83158b69767c78f7d4a8824ccbf1592376f88335
parentarm/xilinx__zynq: Support application based clock freq. (diff)
downloadrtems-c59f668c425ed17eaa2e484984d948c16e5155c9.tar.bz2
PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.
Patch from Nick for this. Thanks.
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-rtems.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
index 5f30cf75ed..e199ffec87 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
@@ -888,7 +888,7 @@ rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
if (rc)
{
free (rtems);
- return rtems_rfs_rtems_error ("initialise: open", rc);
+ return rtems_rfs_rtems_error ("initialise: open", errno);
}
mt_entry->fs_info = fs;