commit | 8b578bdcebd8f6121abe8f695c5e81e3f1ae3352 | [log] [tgz] |
---|---|---|
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Tue Jun 02 15:18:42 2020 +0300 |
committer | Andrew Boie <andrewboie@gmail.com> | Mon Aug 10 14:56:08 2020 -0700 |
tree | a8762cbf6776f483246eb6f11f77e6c9bb3af2a7 | |
parent | 1e9ae21084d96e9dbafd88c58ae76e32cba25b8d [diff] |
lib: os: Add refcounting to fdtable entries Use proper refcounting instead of magic value in obj field when checking whether the fd is still in use. This will make sure that if fd is shared between two threads, we do not release it too soon. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>