diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2025-05-28 11:49:42 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2025-06-09 13:24:43 +0300 |
commit | 27e850c88df0e25474a8caeb2903e2e90b62c1dc (patch) | |
tree | e74812e2773dc773dcf0aeb95b688d0e22964412 /scripts/lib/kdoc/kdoc_files.py | |
parent | a833d31ad867103ba72a0b73f3606f4ab8601719 (diff) | |
download | linux-27e850c88df0e25474a8caeb2903e2e90b62c1dc.tar.xz |
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: <20250528-ffa_notif_fix-v1-2-5ed7bc7f8437@arm.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions