diff options
author | Chris Johns <chrisj@rtems.org> | 2010-10-18 22:39:35 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2010-10-18 22:39:35 +0000 |
commit | 6dd4853c48fad9bf4b0c8a7ee5622452a7c39270 (patch) | |
tree | f75e287c50735e329f9dc6496715f6812a1071fb /cpukit/libfs | |
parent | Regenerate. (diff) | |
download | rtems-6dd4853c48fad9bf4b0c8a7ee5622452a7c39270.tar.bz2 |
2010-10-19 Chris Johns <chrisj@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems-file.c: Add missing unlock in
write. Return the error code in close.
Diffstat (limited to 'cpukit/libfs')
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c index 093d7b0623..ad9cfbede0 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-file.c @@ -100,7 +100,7 @@ rtems_rfs_rtems_file_close (rtems_libio_t* iop) rc = rtems_rfs_rtems_error ("file-close: file close", rc); rtems_rfs_rtems_unlock (fs); - return 0; + return rc; } /** @@ -203,7 +203,10 @@ rtems_rfs_rtems_file_write (rtems_libio_t* iop, { rc = rtems_rfs_file_set_size (file, pos); if (rc) + { + rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file)); return rtems_rfs_rtems_error ("file-write: write extend", rc); + } rtems_rfs_file_set_bpos (file, pos); } |