diff options
author | Rijo Thomas <Rijo-john.Thomas@amd.com> | 2021-04-14 20:38:27 +0300 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2021-05-05 14:00:11 +0300 |
commit | 9f015b3765bf593b3ed5d3b588e409dc0ffa9f85 (patch) | |
tree | 0bd7503a0029b6125299e9649d56963e7a781bac /drivers/tee/Makefile | |
parent | 9f4ad9e425a1d3b6a34617b8ea226d56a119a717 (diff) | |
download | linux-9f015b3765bf593b3ed5d3b588e409dc0ffa9f85.tar.xz |
tee: amdtee: unload TA only when its refcount becomes 0
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: 757cc3e9ff1d ("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>
Diffstat (limited to 'drivers/tee/Makefile')
0 files changed, 0 insertions, 0 deletions