summaryrefslogtreecommitdiffstats
path: root/drivers/vme
diff options
context:
space:
mode:
authorLv Ruyi <lv.ruyi@zte.com.cn>2021-11-04 11:30:47 +0000
committerJens Wiklander <jens.wiklander@linaro.org>2021-11-16 14:41:23 +0100
commitc23ca66a4dadb6f050dc57358bc8d57a747c35bf (patch)
treea92cf2ea31b95e50fc1be378bfe366cb2d2f94f4 /drivers/vme
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff)
downloadlinux-c23ca66a4dadb6f050dc57358bc8d57a747c35bf.tar.bz2
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>
Diffstat (limited to 'drivers/vme')
0 files changed, 0 insertions, 0 deletions