tee: amdtee: unload TA only when its refcount becomes 0
stable inclusion from stable-5.10.40 commit c39a190d834dee504a09ef8b54786cc43c9e3568 bugzilla: 51882 CVE: NA -------------------------------- [ Upstream commit 9f015b37 ] Same Trusted Application (TA) can be loaded in multiple TEE contexts. If it is a single instance TA, the TA should not get unloaded from AMD Secure Processor, while it is still in use in another TEE context. Therefore reference count TA and unload it when the count becomes zero. Fixes: 757cc3e9 ("tee: add AMD-TEE driver") Reviewed-by:Devaraj Rangasamy <Devaraj.Rangasamy@amd.com> Signed-off-by:
Rijo Thomas <Rijo-john.Thomas@amd.com> Acked-by:
Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment