author | chao.liu <chao.liu@amlogic.com> | 2018-01-12 06:36:40 (GMT) |
---|---|---|
committer | Chao Liu <chao.liu@amlogic.com> | 2018-01-23 05:36:22 (GMT) |
commit | 21cd6d1c43b70f53a24ae59e15f39aa37e4ad084 (patch) | |
tree | c16d99a207121f6e47a978d6749611cd4b7a90b9 | |
parent | ad124b8aafa3bb7495982ad3c7386bdc069532ab (diff) | |
download | tdk-21cd6d1c43b70f53a24ae59e15f39aa37e4ad084.zip tdk-21cd6d1c43b70f53a24ae59e15f39aa37e4ad084.tar.gz tdk-21cd6d1c43b70f53a24ae59e15f39aa37e4ad084.tar.bz2 |
linuxdriver: avoid deleting node supp_req twice
PD#158561
Add judgement condition for deleting supp_req node when linux completion
was interrupted.
Change-Id: I3bb196aa5648d0aab3fb6030a0c4fbe2f78a48f4
Signed-off-by: Chao.Liu <Chao.Liu@amlogic.com>
-rw-r--r-- | linuxdriver/optee/supp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxdriver/optee/supp.c b/linuxdriver/optee/supp.c index df35fc0..02b1219 100644 --- a/linuxdriver/optee/supp.c +++ b/linuxdriver/optee/supp.c @@ -131,7 +131,7 @@ u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, * interrupting then wouldn't make sense. */ interruptable = !req->busy; - if (!req->busy) + if ((!req->busy) && (req->ret != TEEC_ERROR_COMMUNICATION)) list_del(&req->link); } mutex_unlock(&supp->mutex); |