]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: arm_ffa: Unmap Rx/Tx buffers on init failure
authorHaoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Wed, 10 Dec 2025 03:16:56 +0000 (11:16 +0800)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 15 Dec 2025 10:31:15 +0000 (10:31 +0000)
commit9fda364cb78c8b9e1abe4029f877300c94655742
tree54f391feaee4ee6bfca198964521156770a93aa6
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
firmware: arm_ffa: Unmap Rx/Tx buffers on init failure

ffa_init() maps the Rx/Tx buffers via ffa_rxtx_map() but on the
partition setup failure path it never unmaps them.

Add the missing ffa_rxtx_unmap() call in the error path so that
the Rx/Tx buffers are properly released before freeing the backing
pages.

Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
Message-Id: <20251210031656.56194-1-lihaoxiang@isrc.iscas.ac.cn>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_ffa/driver.c