mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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 <[email protected]>
Signed-off-by: Lv Ruyi <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
[jw: removed the redundant braces]
Signed-off-by: Jens Wiklander <[email protected]>