[rtems commit] PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.

Chris Johns chrisj at rtems.org
Tue Dec 10 03:54:55 UTC 2013


Module:    rtems
Branch:    master
Commit:    c59f668c425ed17eaa2e484984d948c16e5155c9
Changeset: http://git.rtems.org/rtems/commit/?id=c59f668c425ed17eaa2e484984d948c16e5155c9

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Dec 10 15:00:27 2013 +1100

PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.

Patch from Nick for this. Thanks.

---

 cpukit/libfs/src/rfs/rtems-rfs-rtems.c |    2 +-
 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 5f30cf7..e199ffe 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;




More information about the vc mailing list