summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2026-04-17 00:51:22 -0700
committerJohn Johansen <john.johansen@canonical.com>2026-06-13 20:14:06 -0700
commitf86ee868fd54c372255519284e1c0f4f7707c045 (patch)
tree40bbe9500a712045a22b9dbeb97f29f98c36061e /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent6d25e7b47616cb2db43351210929c8f19dc305a3 (diff)
apparmor: add a conditional version of get_newest_label
get_newest_label() will always return a refcount, on the profile it returns. However there are cases where we only need the refcount if the label is stale and get_newest_label() will return a different label. Optimize this by making the get/put happen conditionally, by keeping a flag indicating if the get was performed and a put is needed. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions