build: fix uninitialized-use when build with prebuilt toolchain [1/1]
authorChia-hung Duan <chiahungduan@google.com>
Wed, 3 Jul 2019 06:47:16 +0000 (14:47 +0800)
committerShuide Chen <shuide.chen@amlogic.com>
Thu, 25 Jul 2019 02:13:40 +0000 (19:13 -0700)
PD#SWPL-8241

Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable

Solution:
Init to reasonable value

Verify:
Build with Android prebuilt toolchain

Change-Id: I41614aa257d4306efe190539e7a54f9756fcb78c

optee/call.c

index ab1d92c12ccd7f98c64c2fa69e04118f20b234b6..46831045b9037a1cfb935d0bea157d270134736d 100644 (file)
@@ -362,7 +362,7 @@ int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session)
 {
        struct optee_context_data *ctxdata = ctx->data;
        struct tee_shm *shm;
-       struct optee_msg_arg *msg_arg;
+       struct optee_msg_arg *msg_arg = NULL;
        phys_addr_t msg_parg;
        struct optee_session *sess;