summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2019-07-02 12:53:47 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-02 12:58:58 -0700
commit4f2f44320f9b96bdc8c0fb25c116104ea501ab8b (patch)
tree824e354b27eeb0e932fc3c6f9cadec869674fbf7 /pkg/sentry/kernel
parent0aa9418a778b2fffef4ea4691e97868b498e3b22 (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/kernel')
0 files changed, 0 insertions, 0 deletions