acrn-kernel/drivers/tee/optee
Yang Yingliang cce616e012 tee: optee: fix possible memory leak in optee_register_device()
If device_register() returns error in optee_register_device(),
the name allocated by dev_set_name() need be freed. As comment
of device_register() says, it should use put_device() to give
up the reference in the error path. So fix this by calling
put_device(), then the name can be freed in kobject_cleanup(),
and optee_device is freed in optee_release_device().

Fixes: c3fa24af92 ("tee: optee: add TEE bus device enumeration support")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2022-11-17 09:22:12 +01:00
..
Kconfig tee: simplify shm pool handling 2022-02-16 07:49:41 +01:00
Makefile
call.c optee: remove vma linked list walk 2022-09-26 19:46:20 -07:00
core.c optee: cache argument shared memory structs 2022-04-25 21:13:05 +02:00
device.c tee: optee: fix possible memory leak in optee_register_device() 2022-11-17 09:22:12 +01:00
ffa_abi.c firmware: arm_ffa: Split up ffa_ops into info, message and memory operations 2022-09-08 11:34:04 +01:00
notif.c optee: Use bitmap_free() to free bitmap 2022-01-24 12:53:34 +01:00
optee_ffa.h optee: add FF-A capability OPTEE_FFA_SEC_CAP_ARG_OFFSET 2022-04-13 07:37:48 +02:00
optee_msg.h
optee_private.h tee: optee: Drop ffa_ops in optee_ffa structure using ffa_dev->ops directly 2022-09-08 11:30:34 +01:00
optee_rpc_cmd.h
optee_smc.h optee: Remove duplicate 'of' in two places. 2022-07-08 10:51:24 +02:00
optee_trace.h
rpc.c
smc_abi.c optee: smc_abi.c: fix wrong pointer passed to IS_ERR/PTR_ERR() 2022-07-08 09:56:38 +02:00
supp.c