linux-stable/drivers/tee
Dongliang Mu 7102dd0a92 tee: optee: add missing mutext_destroy in optee_ffa_probe
[ Upstream commit b5e2288683 ]

The error handling code of optee_ffa_probe misses the mutex_destroy of
ffa.mutex when mutext_init succeeds.

Fix this by adding mutex_destory of ffa.mutex at the error handling part

Fixes: aceeafefff ("optee: use driver internal tee_context for some rpc")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:16:17 +02:00
..
amdtee tee: amdtee: fix an IS_ERR() vs NULL bug 2021-11-29 09:55:49 +01:00
optee tee: optee: add missing mutext_destroy in optee_ffa_probe 2022-05-09 09:16:17 +02:00
Kconfig tee: fix crypto select 2020-05-28 12:38:00 +02:00
Makefile tee: add AMD-TEE driver 2020-01-04 13:49:51 +08:00
tee_core.c tee: export teedev_open() and teedev_close_context() 2021-11-17 14:08:55 +01:00
tee_private.h tee: don't assign shm id for private shms 2020-02-28 13:37:42 +01:00
tee_shm.c tee: handle lookup of shm with reference count 0 2021-12-16 09:30:14 +01:00
tee_shm_pool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00