diff options
author | Richard Braun <rbraun@sceen.net> | 2014-02-07 22:54:24 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-02-07 22:54:24 +0100 |
commit | 1ea83c98a8fb8f58a4de8368d1fa29d341a2a73c (patch) | |
tree | 2ac86e477eec373b6566c82e19537d3b50ba1073 /libshouldbeinlibc/idvec-funcs.c | |
parent | eafc1c8d2223693e96c9619897f92774735fcb49 (diff) |
trans/fakeroot: fix cached node retrieval on lookup
When a client finds a node from the hash table, it could happen that
another thread is still holding one reference on it before the current
thread has acquired its own. Simply checking for a non zero refcount isn't
enough, the new client must atomically acquire its own reference.
* trans/fakeroot.c (netfs_S_dir_lookup): Find and acquire node reference
while holding netfs_node_refcnt_lock.
Diffstat (limited to 'libshouldbeinlibc/idvec-funcs.c')
0 files changed, 0 insertions, 0 deletions