aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSudeep Holla <[email protected]>2025-05-28 08:49:42 +0000
committerSudeep Holla <[email protected]>2025-06-09 10:24:43 +0000
commit27e850c88df0e25474a8caeb2903e2e90b62c1dc (patch)
treee74812e2773dc773dcf0aeb95b688d0e22964412 /tools/perf/scripts/python/stackcollapse.py
parentfirmware: arm_ffa: Fix memory leak by freeing notifier callback node (diff)
downloadkernel-27e850c88df0e25474a8caeb2903e2e90b62c1dc.tar.gz
kernel-27e850c88df0e25474a8caeb2903e2e90b62c1dc.zip
firmware: arm_ffa: Move memory allocation outside the mutex locking
The notifier callback node allocation is currently done while holding the notify_lock mutex. While this is safe even if memory allocation may sleep, we need to move the allocation outside the locked region in preparation to move from using muxtes to rwlocks. Move the memory allocation to avoid potential sleeping in atomic context once the locks are moved from mutex to rwlocks. Fixes: e0573444edbf ("firmware: arm_ffa: Add interfaces to request notification callbacks") Message-Id: <[email protected]> Reviewed-by: Jens Wiklander <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions