[rtems commit] rfs: Remove erroneous call of rtems_disk_release()
Sebastian Huber
sebh at rtems.org
Fri Aug 10 04:57:27 UTC 2018
Module: rtems
Branch: 4.11
Commit: 3abc731b22c5200948277bb694bea7d7367994d1
Changeset: http://git.rtems.org/rtems/commit/?id=3abc731b22c5200948277bb694bea7d7367994d1
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 #3494.
---
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 d99a351..5c79191 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