mirror-linux/drivers/firmware/arm_ffa
Sudeep Holla a6848a5040 firmware: arm_ffa: Fix sched-recv callback partition lookup
ffa_sched_recv_cb_update() used list_for_each_entry_safe() to search for
a matching partition and then tested the iterator against NULL. That is
not a valid end-of-list check for circular lists and can fall through
with an invalid pointer. Use a normal iterator and detect the not-found
case correctly before touching the partition state.

Fixes: be61da9385 ("firmware: arm_ffa: Allow multiple UUIDs per partition to register SRI callback")
Link: https://patch.msgid.link/20260428-ffa_fixes-v2-11-8595ae450034@kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
2026-05-05 16:42:49 +01:00
..
Kconfig firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00
Makefile firmware: arm_ffa: Split bus and driver into distinct modules 2024-05-29 23:23:25 +01:00
bus.c firmware: arm_ffa: Check for NULL FF-A ID table while driver registration 2026-04-29 16:50:34 +01:00
common.h firmware: arm_ffa: Split bus and driver into distinct modules 2024-05-29 23:23:25 +01:00
driver.c firmware: arm_ffa: Fix sched-recv callback partition lookup 2026-05-05 16:42:49 +01:00
smccc.c firmware: arm_ffa: Add support for SMCCC as transport to FFA driver 2021-05-26 22:36:46 +01:00