[PATCH] rfs: Remove erroneous call of rtems_disk_release()

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Aug 6 06:12:24 UTC 2018


The function rtems_rfs_buffer_sync() erroneously calls
rtems_disk_release(). This screws up the reference counting of the disk.

Update #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 33beb54700..4a66840b17 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)
   {
-- 
2.13.7



More information about the devel mailing list