forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -397,7 +397,6 @@ rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
|
|||||||
rtems_status_text (sc));
|
rtems_status_text (sc));
|
||||||
result = EIO;
|
result = EIO;
|
||||||
}
|
}
|
||||||
rtems_disk_release (fs->disk);
|
|
||||||
#else
|
#else
|
||||||
if (fsync (fs->device) < 0)
|
if (fsync (fs->device) < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user