mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
build: fix uninitialized-use when build with prebuilt toolchain [1/1]
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: I09615276b48b6253f8084743a7d50081cfc24ec4 Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
This commit is contained in:
@@ -445,7 +445,7 @@ static void check_sp_fault_again(struct pt_regs *regs)
|
||||
{
|
||||
unsigned long sp = 0, addr;
|
||||
struct page *page;
|
||||
int cache;
|
||||
int cache = 0;
|
||||
|
||||
#ifdef CONFIG_ARM
|
||||
sp = regs->ARM_sp;
|
||||
|
||||
@@ -365,7 +365,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user