summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-12-06 03:16:39 +0300
committerPeter Zijlstra <peterz@infradead.org>2025-12-17 15:31:04 +0300
commit991bdf7e9d6cc74c1de215d1a05c23ff61076bf0 (patch)
tree337f8f162ed1768b6e00329156abed8426c9b182 /include/linux
parentb9e52b11d2e5e403afaf69a7f8d6b29f8380ed38 (diff)
downloadlinux-991bdf7e9d6cc74c1de215d1a05c23ff61076bf0.tar.xz
perf: Move security_perf_event_free() call to __free_event()
Move the freeing of any security state associated with a perf event from _free_event() to __free_event(), i.e. invoke security_perf_event_free() in the error paths for perf_event_alloc(). This will allow adding potential error paths in perf_event_alloc() that can occur after allocating security state. Note, kfree() and thus security_perf_event_free() is a nop if event->security is NULL, i.e. calling security_perf_event_free() even if security_perf_event_alloc() fails or is never reached is functionality ok. Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Xudong Hao <xudong.hao@intel.com> Link: https://patch.msgid.link/20251206001720.468579-4-seanjc@google.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions