[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250528-ffa_notif_fix-v1-0-5ed7bc7f8437@arm.com>
Date: Wed, 28 May 2025 09:49:40 +0100
From: Sudeep Holla <sudeep.holla@....com>
To: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Sudeep Holla <sudeep.holla@....com>,
Jens Wiklander <jens.wiklander@...aro.org>,
Jérôme Forissier <jerome.forissier@...aro.org>
Subject: [PATCH 0/3] firmware: arm_ffa: Fixes for FF-A notification
handling
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.
Signed-off-by: Sudeep Holla <sudeep.holla@....com>
---
Sudeep Holla (3):
firmware: arm_ffa: Fix memory leak by freeing notifier callback node
firmware: arm_ffa: Move memory allocation outside the mutex locking
firmware: arm_ffa: Replace mutex with rwlock to avoid sleep in atomic context
drivers/firmware/arm_ffa/driver.c | 71 ++++++++++++++++++++-------------------
1 file changed, 36 insertions(+), 35 deletions(-)
---
base-commit: 0ff41df1cb268fc69e703a08a57ee14ae967d0ca
change-id: 20250528-ffa_notif_fix-f90903a2ed0b
--
Regards,
Sudeep
Powered by blists - more mailing lists