soc: qcom: msm_smem: Fix uninitialized variable usage
Initialize remote_host value for smem corner case where variable can be used without being set. CRs-Fixed: 2004073 Change-Id: Iec3b0d66e7f557efa7167bdc2c1be9b02dcd4e96 Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
parent
6979b9ae1c
commit
f8559c8f88
1 changed files with 1 additions and 1 deletions
|
@ -1157,7 +1157,7 @@ static void smem_module_init_notify(uint32_t state, void *data)
|
|||
static void smem_init_security_partition(struct smem_toc_entry *entry,
|
||||
uint32_t num)
|
||||
{
|
||||
uint16_t remote_host;
|
||||
uint16_t remote_host = 0;
|
||||
struct smem_partition_header *hdr;
|
||||
bool is_comm_partition = false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue