summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-04 14:27:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-08-10 06:58:56 +0200
commit68f2ea07c299ec3b30f8839b6e444634f7ca0ac2 (patch)
tree22c2097e0f3db7585b8c2f66c7bb3ffd5f9c8ab0
parent680d7650895f346ca9b5bef262a84e61d92fa97a (diff)
downloadrtems-68f2ea07c299ec3b30f8839b6e444634f7ca0ac2.tar.bz2
rfs: Remove erroneous call of rtems_disk_release()
The function rtems_rfs_buffer_sync() erroneously calls rtems_disk_release(). This screws up the reference counting of the disk. Close #3495.
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
index 6c8ad8299b..2932e9bcc6 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
@@ -393,7 +393,6 @@ rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
rtems_status_text (sc));
result = EIO;
}
- rtems_disk_release (fs->disk);
#else
if (fsync (fs->device) < 0)
{