diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-07-02 12:53:47 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-02 12:58:58 -0700 |
commit | 4f2f44320f9b96bdc8c0fb25c116104ea501ab8b (patch) | |
tree | 824e354b27eeb0e932fc3c6f9cadec869674fbf7 /pkg/sentry/syscalls/linux/linux64.go | |
parent | 0aa9418a778b2fffef4ea4691e97868b498e3b22 (diff) |
Simplify (and fix) refcounts in createAt.
fileOpAt holds references on the Dirents passed as arguments to the callback,
and drops refs when finished, so we don't need to DecRef those Dirents
ourselves
However, all Dirents that we get from FindInode/FindLink must be DecRef'd.
This CL cleans up the ref-counting logic, and fixes some refcount issues in the
process.
PiperOrigin-RevId: 256220882
Diffstat (limited to 'pkg/sentry/syscalls/linux/linux64.go')
0 files changed, 0 insertions, 0 deletions