Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tee: qcomtee: initialize result before use in release worker

Initialize result to 0 so the error path doesn't read it
uninitialized when the invoke fails. Fixes a Smatch warning.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/op-tee/7c1e0de2-7d42-4c6b-92fe-0e4fe5d650b5@oss.qualcomm.com/
Fixes: d6e290837e50 ("tee: add Qualcomm TEE driver")
Signed-off-by: Amirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

authored by

Amirreza Zarrabi and committed by
Jens Wiklander
e19d7f7e ac5ae0a5

+1 -1
+1 -1
drivers/tee/qcomtee/core.c
··· 82 82 { 83 83 struct qcomtee_object *object; 84 84 struct qcomtee *qcomtee; 85 - int ret, result; 85 + int ret, result = 0; 86 86 87 87 /* RELEASE does not require any argument. */ 88 88 struct qcomtee_arg args[] = { { .type = QCOMTEE_ARG_TYPE_INV } };