Re: [PATCH 0/3] firmware: arm_ffa: Fixes for FF-A notification handling

From: Sudeep Holla
Date: Mon Jun 09 2025 - 06:31:43 EST


On Wed, 28 May 2025 09:49:40 +0100, Sudeep Holla wrote:
> This patch series improves the arm_ffa notification callback handling by
> addressing safety and memory issues. It replaces a mutex with an rwlock
> to prevent sleeping in atomic context, resolving kernel warnings. Memory
> allocation is moved outside the lock to support this transition safely.
> Additionally, a memory leak in the notifier unregistration path is fixed
> by properly freeing the callback node.
>
> [...]

Applied to sudeep.holla/linux (for-next/ffa/fixes), thanks!

[1/3] firmware: arm_ffa: Fix memory leak by freeing notifier callback node
https://git.kernel.org/sudeep.holla/c/a833d31ad867
[2/3] firmware: arm_ffa: Move memory allocation outside the mutex locking
https://git.kernel.org/sudeep.holla/c/27e850c88df0
[3/3] firmware: arm_ffa: Replace mutex with rwlock to avoid sleep in atomic context
https://git.kernel.org/sudeep.holla/c/9ca7a421229b

--
Regards,
Sudeep