]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: arm_ffa: Check for NULL FF-A ID table while driver registration
authorSudeep Holla <sudeep.holla@kernel.org>
Tue, 28 Apr 2026 18:33:25 +0000 (19:33 +0100)
committerSudeep Holla <sudeep.holla@kernel.org>
Wed, 29 Apr 2026 15:50:34 +0000 (16:50 +0100)
commit0a5e695095c557d2380131b613dea4e8d90371be
treecf64e031b27814487d527ba60bb3d991d5ec0972
parent254f49634ee16a731174d2ae34bc50bd5f45e731
firmware: arm_ffa: Check for NULL FF-A ID table while driver registration

The bus match callback assumes that every FF-A driver provides an
id_table and dereferences it unconditionally. Enforce that contract at
registration time so a buggy client driver cannot crash the bus during
match.

Fixes: 92743071464f ("firmware: arm_ffa: Ensure drivers provide a probe function")
Link: https://patch.msgid.link/20260428-ffa_fixes-v2-1-8595ae450034@kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@kernel.org>
drivers/firmware/arm_ffa/bus.c