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: 4615e5a34b95 ("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
..
2021-05-05 13:00:11 +02:00
2021-11-16 14:41:23 +01:00
2020-05-28 12:38:00 +02:00
2020-01-04 13:49:51 +08:00
2021-05-17 18:40:54 -05:00
2020-02-28 13:37:42 +01:00
2019-06-05 17:36:37 +02:00
2021-10-25 14:53:08 +02:00