Skip to content

Commit c834eff

Browse files
committed
Merge tag 'optee-fix-for-v5.18' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
OP-TEE fix missing mutex_destroy in probe error handling path * tag 'optee-fix-for-v5.18' of git://git.linaro.org/people/jens.wiklander/linux-tee: tee: optee: add missing mutext_destroy in optee_ffa_probe Link: https://lore.kernel.org/r/20220413052001.GA49798@jade Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 1808b18 + b5e2288 commit c834eff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tee/optee/ffa_abi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ static int optee_ffa_probe(struct ffa_device *ffa_dev)
865865
rhashtable_free_and_destroy(&optee->ffa.global_ids, rh_free_fn, NULL);
866866
optee_supp_uninit(&optee->supp);
867867
mutex_destroy(&optee->call_queue.mutex);
868+
mutex_destroy(&optee->ffa.mutex);
868869
err_unreg_supp_teedev:
869870
tee_device_unregister(optee->supp_teedev);
870871
err_unreg_teedev:

0 commit comments

Comments
 (0)