|author||Sebastian Huber <firstname.lastname@example.org>||2020-03-10 17:07:19 +0100|
|committer||Sebastian Huber <email@example.com>||2020-03-13 09:57:04 +0100|
|parent||mrm332-testsuite.tcfg: Add dl01 (diff)|
libio: Robust file descriptor reference counting
There was a race conditon in the reference counting of file descriptors during a close() operation. After the call to the close handler, the rtems_libio_free() function cleared the flags to zero. However, at this point in time there may still exist some holders of the file descriptor. With RTEMS_DEBUG enabled this could lead to failed assertions in rtems_libio_iop_drop(). Change the code to use only atomic read-modify-write operations on the rtems_libio_iop::flags.
Diffstat (limited to 'c')
0 files changed, 0 insertions, 0 deletions