[rtems commit] rfs: Remove erroneous call of rtems_disk_release()
Sebastian Huber
sebh at rtems.org
Tue Aug 7 05:40:04 UTC 2018
Module: rtems
Branch: master
Commit: d56e68bb8be5a44e54652c59b787caf2911e7e57
Changeset: http://git.rtems.org/rtems/commit/?id=d56e68bb8be5a44e54652c59b787caf2911e7e57
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Sat Aug 4 14:27:38 2018 +0200
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 #3484.
---
cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
index 33beb54..4a66840 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)
{
More information about the vc
mailing list