]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_ffa: Check xa_load() return value
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 8 Jan 2024 12:34:13 +0000 (12:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:21:19 +0000 (16:21 -0800)
commit26ef46b731576387fa56e9aafb6ccb75cf1d6cfd
treefbe4cf841f54d4df1c15b912efa9833c16d8993b
parent39cd62bf8c11a85919e1e3ca3d4c4e2adc4ba7d1
firmware: arm_ffa: Check xa_load() return value

[ Upstream commit c00d9738fd5fce15dc5494d05b7599dce23e8146 ]

Add a check to verify the result of xa_load() during the partition
lookups done while registering/unregistering the scheduler receiver
interrupt callbacks and while executing the main scheduler receiver
interrupt callback handler.

Fixes: 0184450b8b1e ("firmware: arm_ffa: Add schedule receiver callback mechanism")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240108-ffa_fixes_6-8-v1-3-75bf7035bc50@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_ffa/driver.c