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:57:10 +0200
commit3abc731b22c5200948277bb694bea7d7367994d1 (patch)
tree35a205ab4cf69d0d76a35d46d9eeb6f79bb4d3a1
parentd4165e717329582e7d24163643f1e90ab8508963 (diff)
downloadrtems-3abc731b22c5200948277bb694bea7d7367994d1.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 #3494.
-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 d99a351a7f..5c791916d0 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
@@ -397,7 +397,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)
{