]> git.baikalelectronics.ru Git - kernel.git/commit
tee: optee: add missing mutext_destroy in optee_ffa_probe
authorDongliang Mu <mudongliangabcd@gmail.com>
Wed, 16 Mar 2022 13:50:47 +0000 (21:50 +0800)
committerJens Wiklander <jens.wiklander@linaro.org>
Tue, 5 Apr 2022 06:56:26 +0000 (08:56 +0200)
commitff65b54c4471d3ad187586fe59259e1902a23474
treeb2c466d037d404c615321d2c7c8bdce849cac102
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
tee: optee: add missing mutext_destroy in optee_ffa_probe

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: 1d7c016c19e4 ("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>
drivers/tee/optee/ffa_abi.c