diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2025-05-28 11:49:41 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2025-06-09 13:24:43 +0300 |
commit | a833d31ad867103ba72a0b73f3606f4ab8601719 (patch) | |
tree | ec95f4b1f8161203f30a901224e84b30912002cd /scripts/lib/kdoc/kdoc_files.py | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) | |
download | linux-a833d31ad867103ba72a0b73f3606f4ab8601719.tar.xz |
firmware: arm_ffa: Fix memory leak by freeing notifier callback node
Commit e0573444edbf ("firmware: arm_ffa: Add interfaces to request
notification callbacks") adds support for notifier callbacks by allocating
and inserting a callback node into a hashtable during registration of
notifiers. However, during unregistration, the code only removes the
node from the hashtable without freeing the associated memory, resulting
in a memory leak.
Resolve the memory leak issue by ensuring the allocated notifier callback
node is properly freed after it is removed from the hashtable entry.
Fixes: e0573444edbf ("firmware: arm_ffa: Add interfaces to request notification callbacks")
Message-Id: <20250528-ffa_notif_fix-v1-1-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