WSL2-Linux-Kernel/drivers/tee
Lv Ruyi c23ca66a4d optee: fix kfree NULL pointer
This patch fixes the following Coccinelle error:
drivers/tee/optee/ffa_abi.c: 877: ERROR  optee is NULL but dereferenced.

If memory allocation fails, optee is null pointer. the code will goto err
and release optee.

Fixes: 4615e5a34b ("optee: add FF-A support")
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
[jw: removed the redundant braces]
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2021-11-16 14:41:23 +01:00
..
amdtee tee: amdtee: unload TA only when its refcount becomes 0 2021-05-05 13:00:11 +02:00
optee optee: fix kfree NULL pointer 2021-11-16 14:41:23 +01:00
Kconfig
Makefile
tee_core.c tee: Fix fall-through warnings for Clang 2021-05-17 18:40:54 -05:00
tee_private.h
tee_shm.c dma-buf: move dma-buf symbols into the DMA_BUF module namespace 2021-10-25 14:53:08 +02:00
tee_shm_pool.c