[rtems commit] rfs: Remove erroneous call of rtems_disk_release()
Sebastian Huber
sebh at rtems.org
Fri Aug 10 04:59:16 UTC 2018
Module: rtems
Branch: 4.10
Commit: 68f2ea07c299ec3b30f8839b6e444634f7ca0ac2
Changeset: http://git.rtems.org/rtems/commit/?id=68f2ea07c299ec3b30f8839b6e444634f7ca0ac2
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 #3495.
---
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 6c8ad82..2932e9b 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)
{
More information about the vc
mailing list